I'm getting tremendous amount of grief trying to get FreeLinking 3.x and was looking at the freelinking

function freelinking_freelinking() {
  $files = file_scan_directory(
    drupal_get_path('module', 'freelinking') . '/plugins/', '.inc');
  foreach ($files as $path => $file) {
    require $path;
  }
  foreach ($freelinking as $plugin => $definition) {
    if (!$definition['settings']) {
      $freelinking[$plugin]['settings'] = 'freelinking_' . $plugin . '_settings';
    }
  }
  return $freelinking;
}

All of a sudden, there's a freelinking array.... but where does it come from?

I'm very confused how people are successfully using this module at all -- as far as I can tell, the default plugins aren't ever properly loaded, at least in the last several alpha versions.

Comments

jaclayton’s picture

So far I'm not successfully using this module!

juampynr’s picture

Status: Active » Closed (cannot reproduce)

@davideads and @jaycleaton, the $freelinking variable is an static variable defined at each plugin file (within plugins directory). You can see the latest implementation at http://drupalcode.org/project/freelinking.git/blob/refs/heads/6.x-3.x:/f....

Please let me know if you have any issue with the latest version for Drupal 6 or Drupal 7 and open a new issue if so.