You are here

function _nodewords_load_hook_files in Nodewords: D6 Meta Tags 6.3

Same name and namespace in other branches
  1. 6.2 nodewords.module \_nodewords_load_hook_files()

Load the files in the directory "includes" basing on the enabled modules.

1 call to _nodewords_load_hook_files()
nodewords_detect_type_id in ./nodewords.module
Try to guess the type and the ID associated with the viewed page.

File

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

Code

function _nodewords_load_hook_files() {
  $dir = drupal_get_path('module', 'nodewords') . '/includes';
  foreach (file_scan_directory($dir, '.*\\.inc', array(
    '.',
    '..',
    'CVS',
  ), 0, FALSE) as $filename => $info) {
    $bool = module_exists($info->name) && !module_hook($info->name, 'metatags_type');
    if ($bool) {
      module_load_include('inc', 'nodewords', 'includes/' . $info->name);
    }
  }
  nodewords_load_all_includes('nodewords.hooks.inc');
}