You are here

function mb_user_reset in More Buttons 7

Menu callback to define the confirm form output.

Return value

The confirm form.

1 string reference to 'mb_user_reset'
mb_user_menu in mb_user/mb_user.module
Implements hook_menu().

File

mb_user/mb_user.admin.inc, line 145

Code

function mb_user_reset() {
  $question = t('Are you sure you want to reset all %module settings?', array(
    '%module' => t('More Buttons User'),
  ));
  $information = '<p>' . t('This action disables the settings for all buttons. This action cannot be undone.') . '</p>';
  return confirm_form(array(), $question, array(
    'path' => 'admin/config/mb/buttons/more-buttons-user',
    'attributes' => array(
      'class' => 'button',
    ),
  ), $information, t('Reset'), t('Cancel'));
}