function nd_plugins_retrieve in Node displays 6
Retrieve all available plugins.
1 call to nd_plugins_retrieve()
- nd_plugins in includes/
nd.plugins.inc - Menu callback. Registers all plugins for ND.
File
- includes/
nd.plugins.inc, line 76 - Administration functions for ND plugins.
Code
function nd_plugins_retrieve() {
$plugins = module_invoke_all('nd_plugins');
foreach ($plugins as $plugin => $data) {
$data['key'] = $plugin;
$data['form_callback'] = 'nd_' . $plugin . '_form';
$data['submit_callback'] = 'nd_' . $plugin . '_submit';
$data['process_callback'] = 'nd_' . $plugin . '_process';
if (isset($data['file']) && isset($data['path'])) {
$data['filename'] = $data['path'] . '/' . $data['file'];
}
$plugins[$plugin] = $data;
}
return $plugins;
}