function file_entity_file_view_enable in File Entity (fieldable files) 7.3
Same name and namespace in other branches
- 7.2 plugins/tasks/file_view.inc \file_entity_file_view_enable()
Callback to enable/disable the page from the UI.
1 string reference to 'file_entity_file_view_enable'
- file_entity_file_view_page_manager_tasks in plugins/
tasks/ file_view.inc - Specialized implementation of hook_page_manager_task_tasks().
File
- plugins/
tasks/ file_view.inc, line 140 - Handle the 'file view' override task.
Code
function file_entity_file_view_enable($cache, $status) {
variable_set('file_entity_file_view_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['page_manager_enabling_file_view'] = TRUE;
}
}