You are here

function _nodewords_load_hook_files in Nodewords: D6 Meta Tags 6.2

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

Load the files in the directory "includes" based on 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 856
Implement an API that other modules can use to add meta tags.

Code

function _nodewords_load_hook_files() {
  static $included = FALSE;

  // Ensure this function only runs once.
  if ($included) {
    return;
  }
  else {
    $included = TRUE;
  }
  $modules = array(
    'blog',
    'forum',
    'image',
    'node',
    'taxonomy',
    'taxonomy_menu',
    'tracker',
    'uc_catalog',
    'user',
  );
  foreach ($modules as $module) {
    if (module_exists($module) && !module_hook($module, 'nodewords_type_id')) {
      module_load_include('inc', 'nodewords', 'includes/' . $module);
    }
  }
  nodewords_load_all_includes('nodewords.hooks.inc');
}