You are here

function mb_reset in More Buttons 7

Menu callback. Define the confirm form output.

Return value

The confirm form.

1 string reference to 'mb_reset'
mb_menu in mb/mb.module
Implements hook_menu().

File

mb/mb.admin.inc, line 127

Code

function mb_reset() {
  $question = t('Are you sure you want to reset all %module settings to their default values?', array(
    '%module' => t('More Buttons'),
  ));
  $variables = array(
    'items' => mb_default_values('mb'),
    'title' => 'Default values',
  );
  $information = theme('item_list', $variables);
  $information .= '<p>' . t('This action cannot be undone.') . '</p>';
  return confirm_form(array(), $question, array(
    'path' => 'admin/config/mb/buttons',
    'attributes' => array(
      'class' => 'button',
    ),
  ), $information, t('Reset'), t('Cancel'));
}