@@ 1308-1312 (lines=5) @@ | ||
1305 | */ |
|
1306 | public static function register_forward( $route = NULL, $status = 0, $forward = NULL, $key = 'ee' ) { |
|
1307 | do_action( 'AHEE__EE_Config__register_forward',$route,$status,$forward ); |
|
1308 | if ( ! isset( EE_Config::$_module_route_map[ $key ][ $route ] ) || empty( $route )) { |
|
1309 | $msg = sprintf( __( 'The module route %s for this forward has not been registered.', 'event_espresso' ), $route ); |
|
1310 | EE_Error::add_error( $msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__ ); |
|
1311 | return FALSE; |
|
1312 | } |
|
1313 | if ( empty( $forward )) { |
|
1314 | $msg = sprintf( __( 'No forwarding route has been supplied.', 'event_espresso' ), $route ); |
|
1315 | EE_Error::add_error( $msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__ ); |
|
@@ 1371-1375 (lines=5) @@ | ||
1368 | */ |
|
1369 | public static function register_view( $route = NULL, $status = 0, $view = NULL, $key = 'ee' ) { |
|
1370 | do_action( 'AHEE__EE_Config__register_view__begin',$route,$status,$view ); |
|
1371 | if ( ! isset( EE_Config::$_module_route_map[ $key ][ $route ] ) || empty( $route )) { |
|
1372 | $msg = sprintf( __( 'The module route %s for this view has not been registered.', 'event_espresso' ), $route ); |
|
1373 | EE_Error::add_error( $msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__ ); |
|
1374 | return FALSE; |
|
1375 | } |
|
1376 | if ( ! is_readable( $view )) { |
|
1377 | $msg = sprintf( __( 'The %s view file could not be found or is not readable due to file permissions.', 'event_espresso' ), $view ); |
|
1378 | EE_Error::add_error( $msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__ ); |