@@ 1355-1359 (lines=5) @@ | ||
1352 | public static function register_forward($route = null, $status = 0, $forward = null, $key = 'ee') |
|
1353 | { |
|
1354 | do_action('AHEE__EE_Config__register_forward', $route, $status, $forward); |
|
1355 | if (! isset(EE_Config::$_module_route_map[$key][$route]) || empty($route)) { |
|
1356 | $msg = sprintf( |
|
1357 | __('The module route %s for this forward has not been registered.', 'event_espresso'), |
|
1358 | $route |
|
1359 | ); |
|
1360 | EE_Error::add_error($msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__); |
|
1361 | return false; |
|
1362 | } |
|
@@ 1442-1446 (lines=5) @@ | ||
1439 | public static function register_view($route = null, $status = 0, $view = null, $key = 'ee') |
|
1440 | { |
|
1441 | do_action('AHEE__EE_Config__register_view__begin', $route, $status, $view); |
|
1442 | if (! isset(EE_Config::$_module_route_map[$key][$route]) || empty($route)) { |
|
1443 | $msg = sprintf( |
|
1444 | __('The module route %s for this view has not been registered.', 'event_espresso'), |
|
1445 | $route |
|
1446 | ); |
|
1447 | EE_Error::add_error($msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__); |
|
1448 | return false; |
|
1449 | } |