function emailpanels_contactemail_enable in Panels Extras 6
Callback to enable/disable the page from the UI.
1 string reference to 'emailpanels_contactemail_enable'
- emailpanels_contactemail_page_manager_tasks in emailpanels/
plugins/ tasks/ contactemail.inc - Specialized implementation of hook_page_manager_task_tasks(). See api-task.html for more information.
File
- emailpanels/
plugins/ tasks/ contactemail.inc, line 131 - Provides additional page manager tasks CCK Email Contact form for panels use
Code
function emailpanels_contactemail_enable($cache, $status) {
variable_set('emailpanels_contactemail_disabled', $status);
// Set a global flag so that the menu routine knows it needs
// to set a message if enabling cannot be done.
if (!$status) {
$GLOBALS['emailpanels_enabling_contactemail'] = TRUE;
}
}