You are here

function jammer_messages_settings_confirm_delete in Jammer 7

Same name and namespace in other branches
  1. 6 jammer_messages.module \jammer_messages_settings_confirm_delete()

Returns a confirmation page for deleting a jammed message setting.

Return value

array

1 string reference to 'jammer_messages_settings_confirm_delete'
jammer_messages_menu in ./jammer_messages.module
Implements hook_menu().

File

./jammer_messages.module, line 137
Filter status messages set by drupal_set_message().

Code

function jammer_messages_settings_confirm_delete($form, &$form_state, $message) {
  $confirm_form['message'] = array(
    '#type' => 'value',
    '#value' => $message,
  );
  return confirm_form($confirm_form, t('Are you sure you want to un-jam this message?'), 'admin/config/user-interface/jammer_messages', t('Deleting this setting will cause previously hidden messages containing %message to display again. To review the settings on this message, please visit <a href="@content">Message Jammer administration</a> first. This action cannot be undone.', array(
    '@content' => url('admin/config/user-interface/jammer_messages'),
    '%message' => $message->message_string,
  )), t('Delete'), t('Cancel'));
}