function page_manager_handler_delete in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 page_manager/page_manager.admin.inc \page_manager_handler_delete()
Rearrange the order of variants.
1 string reference to 'page_manager_handler_delete'
- page_manager_get_handler_operations in page_manager/
page_manager.admin.inc - Collect all the operations related to task handlers (variants) and build a menu.
File
- page_manager/
page_manager.admin.inc, line 1550 - Administrative functions for the page manager.
Code
function page_manager_handler_delete(&$form, &$form_state) {
if ($form_state['handler']->type == t('Overridden')) {
$text = t('Reverting the variant will delete the variant that is in the database, reverting it to the original default variant. This deletion will not be made permanent until you click Save.');
}
else {
$text = t('Are you sure you want to delete this variant? This deletion will not be made permanent until you click Save.');
}
$form['markup'] = array(
'#value' => '<p>' . $text . '</p>',
);
}