You are here

function freelinking_freelinking in Freelinking 6.3

Same name and namespace in other branches
  1. 7.3 freelinking.module \freelinking_freelinking()

Implementation of hook_freelinking().

Include plugins/*.inc plugins

File

./freelinking.module, line 114

Code

function freelinking_freelinking() {
  static $included;
  if (empty($included)) {
    $included = file_scan_directory(drupal_get_path('module', 'freelinking') . '/plugins/', '.inc$');
    foreach ($included as $absolute => $file) {
      require_once $absolute;
    }
  }

  // The freelinking variable is specified by included files.
  foreach ($freelinking as $plugin => $definition) {
    if (!isset($definition['settings'])) {
      $freelinking[$plugin]['settings'] = 'freelinking_' . $plugin . '_settings';
    }
  }
  return $freelinking;
}