function _taxonomy_access_admin_settings_submit in Taxonomy Access Control 5
Save the administrator settings.
File
- ./
taxonomy_access_admin.inc, line 19 - Administrative interface for taxonomy access control.
Code
function _taxonomy_access_admin_settings_submit($form_id, $form_values) {
//preserving for adding more options soon.
$op = $form_values['op'];
if ($op == t('Reset to defaults')) {
variable_del('taxonomy_access_enabled');
}
if ($op == t('Reset to defaults')) {
drupal_set_message(t('The configuration options of taxonomy access have been reset to their default values.'));
drupal_goto('admin/settings/taxonomy_access');
}
else {
drupal_set_message(t('The configuration options of taxonomy access have been saved.'));
}
return;
}