You are here

function _nodewords_load_all_includes in Nodewords: D6 Meta Tags 6

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

1 call to _nodewords_load_all_includes()
_nodewords_detect_type_and_id in ./nodewords.module
Try to guess the $type and $id by looking at $_GET['q'].

File

./nodewords.module, line 1397
Implement an API that other modules can use to implement meta tags.

Code

function _nodewords_load_all_includes() {
  $dir = drupal_get_path('module', 'nodewords') . '/includes';

  // Update this array when new files are added.
  $includes = array(
    'forum',
    'image',
    'node',
    'taxonomy',
    'taxonomy_menu',
    'uc_catalog',
    'user',
  );
  foreach ($includes as $include) {
    if (module_exists($include) && !module_hook($include, 'nodewords_type_id')) {
      module_load_include('inc', 'nodewords', 'includes/' . $include);
    }
  }
}