function taxonomy_display_admin_form_submit in Taxonomy display 7
Form submit callback; save Taxonomy Display settings for term pages.
1 string reference to 'taxonomy_display_admin_form_submit'
- taxonomy_display_admin_form in ./
taxonomy_display.admin.inc - Helper callback; perform form alterations for taxonomy display admin form.
File
- ./
taxonomy_display.admin.inc, line 120 - Administration form functions for taxonomy display configuration.
Code
function taxonomy_display_admin_form_submit($form, &$form_state) {
$values =& $form_state['values']['additional_settings']['taxonomy_display'];
$td_form =& $form['additional_settings']['taxonomy_display'];
$save_data = array();
$plugin_types = _taxonomy_display_plugin_types();
// Perform submit functions for our plugins.
foreach ($plugin_types as $k => $v) {
if ($values[$k . '_display_select'] != 'missing') {
$save_data[$k . '_display_plugin'] = $values[$k . '_display_select'];
$class = new $values[$k . '_display_select']();
$save_data[$k . '_display_options'] = $class
->formSubmit($td_form[$k . '_display_form'], $values[$k . '_display_form']);
}
}
// Save the add_feed setting.
$save_data['add_feed'] = $values['add_feed'];
// Save data
taxonomy_display_save_taxonomy_display($form['#bundle'], $save_data);
}