function fieldable_panels_panes_file_download_access in Fieldable Panels Panes (FPP) 7
Implements hook_file_download_access().
File
- ./
fieldable_panels_panes.module, line 1601 - Maintains an entity that appears as panel pane content.
Code
function fieldable_panels_panes_file_download_access($field, $entity_type, $entity) {
if ($entity_type == 'fieldable_panels_pane') {
// Use the CTools API to check access.
ctools_include('context');
return ctools_access($entity->view_access, fieldable_panels_panes_get_base_context($entity));
}
}