1 layout.admin.inc _layout_menu_router_path_exists($path)

Helper function to determine whether a layout path is an existing menu router path.

File

core/modules/layout/layout.admin.inc, line 818
Admin page callbacks for the Layout module.

Code

function _layout_menu_router_path_exists($path) {
  $path_matches = db_query('
    SELECT path, page_callback
    FROM {menu_router}
    WHERE path = :path
    ', array(':path' => $path))
    ->fetchAll();
  return !empty($path_matches);
}