You are here

function mb_content_reset in More Buttons 7

Menu callback to define the confirm form output.

Return value

The confirm form.

1 string reference to 'mb_content_reset'
mb_content_menu in mb_content/mb_content.module
Implements hook_menu().

File

mb_content/mb_content.admin.inc, line 165

Code

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