function _taxonomy_menu_valid_path in Taxonomy menu 7.2
Checks a path exists.
@TODO Use the core drupal_valid_path function instead when fixed.
Parameters
string $path: The path to check.
Return value
TRUE if it is a valid path, FALSE otherwise.
Directly inspired by drupal_valid_path function from core but this function throws notices. cf. http://drupal.org/node/876580
1 call to _taxonomy_menu_valid_path()
- taxonomy_menu_custom_paths_vocabulary_validate in taxonomy_menu_custom_paths/
taxonomy_menu_custom_paths.module - Validation handler for settings of custom path in the taxonomy vocabulary.
File
- ./
taxonomy_menu.admin.inc, line 420 - Administrative page callbacks for the Taxonomy menu module.
Code
function _taxonomy_menu_valid_path($path) {
return db_query("SELECT * FROM {menu_router} where path = :path", array(
':path' => $path,
))
->fetchAssoc();
}