You are here

function _nodewords_get_builtin_tags in Nodewords: D6 Meta Tags 5

Return a list of builtin tags from the metatags/ directory.

1 call to _nodewords_get_builtin_tags()
nodewords_nodewords in ./nodewords.module
Implementation of hook_nodewords().

File

./nodewords.module, line 792
Assign META tags to nodes, vocabularies, terms and pages.

Code

function _nodewords_get_builtin_tags() {
  static $tags;
  if (!isset($tags)) {
    $tags = array();
    $path = drupal_get_path('module', 'nodewords') . '/metatags';
    $files = file_scan_directory($path, '.*\\.inc$');
    foreach ($files as $filename => $file) {
      include_once "./{$filename}";
      $tags[] = basename($filename, '.inc');
    }
  }
  return $tags;
}