You are here

function ctools_plugin_process_info in Chaos Tool Suite (ctools) 6

Same name and namespace in other branches
  1. 7 includes/plugins.inc \ctools_plugin_process_info()

Process an info file for plugin information, rather than a hook.

1 call to ctools_plugin_process_info()
ctools_plugin_load_includes in includes/plugins.inc
Load plugins from a directory.

File

includes/plugins.inc, line 619
Contains routines to organize and load plugins. It allows a special variation of the hook system so that plugins can be kept in separate .inc files, and can be either loaded all at once or loaded only when necessary.

Code

function ctools_plugin_process_info($info, $module, $file) {
  $result = drupal_parse_info_file($file->filename);
  if ($result) {
    $result = array(
      $file->name => $result,
    );
    return _ctools_process_data($result, $info, $module, dirname($file->filename), basename($file->filename));
  }
}