function _pathauto_path_is_callback in Pathauto 5
Same name and namespace in other branches
- 5.2 pathauto.inc \_pathauto_path_is_callback()
- 6.2 pathauto.inc \_pathauto_path_is_callback()
- 6 pathauto.inc \_pathauto_path_is_callback()
- 7 pathauto.inc \_pathauto_path_is_callback()
Verifies if the given path is a valid menu callback. Taken from menu_execute_active_handler().
Parameters
$path: A string containing a relative path.
Return value
TRUE if the path is already
1 call to _pathauto_path_is_callback()
File
- ./
pathauto.module, line 407
Code
function _pathauto_path_is_callback($path) {
static $menu = NULL;
if (is_null($menu)) {
$menu = menu_get_menu();
}
// Determine the menu item containing the callback.
return isset($menu["callbacks"][$path]);
}