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