You are here

function nd_plugins in Node displays 6

Menu callback. Registers all plugins for ND.

1 string reference to 'nd_plugins'
_nd_menu in includes/nd.registry.inc
Return menu items.

File

includes/nd.plugins.inc, line 11
Administration functions for ND plugins.

Code

function nd_plugins() {
  $form = array();
  $plugins = nd_plugins_retrieve();
  $plugin_settings = variable_get('nd_plugin_settings', array());
  if (is_array($plugins)) {
    $form['#plugins'] = $plugins;
    foreach ($plugins as $key => $plugin) {
      $form['plugin_' . $plugin['key']] = array(
        '#type' => 'checkbox',
        '#default_value' => $plugin_settings[$plugin['key']]['status'],
      );
    }
  }
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save'),
  );
  return $form;
}