function _metatags_quick_path_based_page in Meta tags quick 7.2
Same name and namespace in other branches
- 8.3 metatags_quick.module \_metatags_quick_path_based_page()
Determine if current page has to be served by path based (not entity based) meta tags set.
2 calls to _metatags_quick_path_based_page()
- metatags_quick_menu_local_tasks_alter in ./
metatags_quick.module - Implements hook_menu_local_tasks_alter().
- metatags_quick_page_build in ./
metatags_quick.module - Implements hook_page_build
File
- ./
metatags_quick.module, line 645 - Quick and dirty implementation of meta tags for drupal 7 Module defines new field type 'meta'. Fields of this type are not displayed in HTML. Instead, they add html meta to the head section.
Code
function _metatags_quick_path_based_page() {
$router_item = menu_get_item();
// @todo: is there another way to decide?
return !is_array($router_item['page_arguments']) || count($router_item['page_arguments']) == 0 || !$router_item['page_arguments'][0] instanceof stdClass;
}