You are here

function nd_plugins_display_submit in Node displays 6

Save plugins settings.

Parameters

array $form The display form.:

array $form_state The submitted values of the form.:

array $nd_display_settings Current display settings being saved.:

1 call to nd_plugins_display_submit()
nd_display_submit in includes/nd.display.inc
Save fields per context.

File

includes/nd.display.inc, line 176
Display overview form.

Code

function nd_plugins_display_submit($form, $form_state, &$nd_display_settings) {
  $plugins = variable_get('nd_plugin_settings', array());
  foreach ($plugins as $key => $plugin) {
    if (isset($plugin['filename'])) {
      require_once $plugin['filename'];
    }
    $function = $plugin['submit_callback'];
    $function($form, $form_state, $nd_display_settings);
  }
}