function file_entity_file_view_get_arguments in File Entity (fieldable files) 7.2
Same name and namespace in other branches
- 7.3 plugins/tasks/file_view.inc \file_entity_file_view_get_arguments()
Callback to get arguments provided by this task handler.
Since this is the file view and there is no UI on the arguments, we create dummy arguments that contain the needed data.
1 string reference to 'file_entity_file_view_get_arguments'
- 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 118 - Handle the 'file view' override task.
Code
function file_entity_file_view_get_arguments($task, $subtask_id) {
return array(
array(
'keyword' => 'file',
'identifier' => t('File being viewed'),
'id' => 1,
'name' => 'entity_id:file',
'settings' => array(),
),
);
}