You are here

function linkit_get_plugin in Linkit 7.2

Fetch metadata for one linkit plugin by the given name.

File

./linkit.module, line 793
Main file for linkit module.

Code

function linkit_get_plugin($plugin_name) {
  ctools_include('plugins');
  $plugin = ctools_get_plugins('linkit', 'linkit_plugins', $plugin_name);

  // If you alter the plugin handler, be sure the new handler is registerd or
  // you include it in some other way.
  drupal_alter('linkit_plugin', $plugin);
  return $plugin;
}