@@ 1410-1414 (lines=5) @@ | ||
1407 | */ |
|
1408 | public static function register_forward( $route = null, $status = 0, $forward = null, $key = 'ee' ) { |
|
1409 | do_action( 'AHEE__EE_Config__register_forward', $route, $status, $forward ); |
|
1410 | if ( ! isset( EE_Config::$_module_route_map[ $key ][ $route ] ) || empty( $route ) ) { |
|
1411 | $msg = sprintf( |
|
1412 | __( 'The module route %s for this forward has not been registered.', 'event_espresso' ), |
|
1413 | $route |
|
1414 | ); |
|
1415 | EE_Error::add_error( $msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__ ); |
|
1416 | return false; |
|
1417 | } |
|
@@ 1495-1499 (lines=5) @@ | ||
1492 | */ |
|
1493 | public static function register_view( $route = null, $status = 0, $view = null, $key = 'ee' ) { |
|
1494 | do_action( 'AHEE__EE_Config__register_view__begin', $route, $status, $view ); |
|
1495 | if ( ! isset( EE_Config::$_module_route_map[ $key ][ $route ] ) || empty( $route ) ) { |
|
1496 | $msg = sprintf( |
|
1497 | __( 'The module route %s for this view has not been registered.', 'event_espresso' ), |
|
1498 | $route |
|
1499 | ); |
|
1500 | EE_Error::add_error( $msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__ ); |
|
1501 | return false; |
|
1502 | } |