You are here

function beautytips_manager_delete_tip_confirm_form in BeautyTips 7.2

Confirm form for deleting a custom beautytip.

1 string reference to 'beautytips_manager_delete_tip_confirm_form'
beautytips_manager_menu in ./beautytips_manager.module
Implements hook_menu().

File

./beautytips_manager.admin.inc, line 492
Administration pages and forms for beautytips manager.

Code

function beautytips_manager_delete_tip_confirm_form($form, &$form_state, $id) {
  $tip = beautytips_manager_get_custom_tip($id);
  $form['id'] = [
    '#type' => 'value',
    '#value' => $id,
  ];
  $question = t('Are you sure you want to the beautytip applied to element %element?', [
    '%element' => $tip->element,
  ]);
  return confirm_form($form, $question, 'admin/config/user-interface/beautytips/custom-tips');
}