You are here

function qtip_revert_instance in qTip (Stylish jQuery Tooltips) 7.2

Revert qTip instance.

2 string references to 'qtip_revert_instance'
qtip_delete_instance_submit in includes/forms/qtip.admin.inc
Submit handler for qtip_delete_instance.
qtip_menu in ./qtip.module
Implements hook_menu().

File

includes/forms/qtip.admin.inc, line 446
Administrative functions for the qTip module.

Code

function qtip_revert_instance($form, $form_state, $qt) {
  $form['machine_name'] = array(
    '#type' => 'hidden',
    '#value' => $qt->machine_name,
  );
  $form['name'] = array(
    '#type' => 'hidden',
    '#value' => $qt->name,
  );
  return confirm_form($form, t('Are you sure you want to revert the qtip instance %name?', array(
    '%name' => $qt->name,
  )), 'admin/config/user-interface/qtip');
}