function mb_content_reset_submit in More Buttons 7
Resave all system variables of the MB Content module to reset the module settings.
File
- mb_content/
mb_content.admin.inc, line 181
Code
function mb_content_reset_submit($form, &$form_state) {
// Resave variables.
$node_types = array_keys(node_type_get_types());
foreach ($node_types as $type) {
variable_set('mb_content_cancel_' . $type, 0);
variable_set('mb_content_sac_' . $type, 0);
variable_set('mb_content_tabcn_' . $type, 0);
}
drupal_set_message(t('The %module settings have been set back.', array(
'%module' => t('More Buttons Content'),
)), 'status');
watchdog('More Buttons Content', 'The %module settings have been set back.', array(
'%module' => t('More Buttons Content'),
), WATCHDOG_NOTICE, l(t('view'), 'admin/config/mb/buttons/more-buttons-content'));
$form_state['redirect'] = 'admin/config/mb/buttons/more-buttons-content';
}