You are here

function nodewords_get_possible_tags in Nodewords: D6 Meta Tags 6.3

Same name and namespace in other branches
  1. 6 nodewords.module \nodewords_get_possible_tags()
  2. 6.2 nodewords.module \nodewords_get_possible_tags()

Query all the modules implementing meta tags and return the list of meta tags.

Return value

An array containing the list of meta tags definitions.

12 calls to nodewords_get_possible_tags()
nodewords_admin_settings_form in nodewords_admin/nodewords_admin.admin.inc
Menu callback: settings form.
nodewords_load_tags in ./nodewords.module
Load tags from table.
nodewords_preprocess_page in ./nodewords.module
Implements hook_preprocess_page().
nodewords_requirements in ./nodewords.install
Implements hook_requirements().
nodewords_save_tags in ./nodewords.module
Update or insert tags in the table.

... See full list

File

./nodewords.module, line 423
Implement an version that other modules can use to add meta tags.

Code

function nodewords_get_possible_tags() {
  static $tags_info = array();
  nodewords_load_all_includes('nodewords.hooks.inc');
  if (empty($tags_info)) {

    // Allow third-party modules to alter the  meta tags list, or to add new
    // meta tags.
    foreach (module_implements('metatags_info') as $module) {
      $result = module_invoke($module, 'metatags_info');
      if (isset($result) && is_array($result)) {
        $tags_info = array_merge($tags_info, $result);
      }
    }
  }
  drupal_alter('metatags_info', $tags_info);
  return $tags_info;
}