function ds_plugins_display_submit in Display Suite 6.2
Same name and namespace in other branches
- 6.3 includes/ds.display.inc \ds_plugins_display_submit()
- 6 includes/ds.display.inc \ds_plugins_display_submit()
Save plugins settings.
Parameters
array $form The display form.:
array $form_state The submitted values of the form.:
array $display_settings Current display settings being saved.:
1 call to ds_plugins_display_submit()
- ds_display_overview_form_submit in includes/
ds.display.inc - Save fields & plugins for a build mode.
File
- includes/
ds.display.inc, line 678 - Display overview form.
Code
function ds_plugins_display_submit($form, $form_state, &$display_settings) {
$module = $form['#module'];
$plugins = variable_get($module . '_plugin_settings', array());
foreach ($plugins as $key => $data) {
if (isset($data['filename'])) {
require_once $data['filename'];
}
$class = $data['class'];
$plugin = new $class();
$plugin
->plugin_form_submit($form, $form_state, $display_settings);
}
}