function fieldable_panels_panes_entity_make_current_access in Fieldable Panels Panes (FPP) 7
Access callback to set a revision of a fieldable panel pane as current.
Parameters
object $entity: A Fieldable Panels Pane object.
Return value
bool TRUE if the specific revision of the panel pane can be set as the current revision, otherwise, FALSE.
1 call to fieldable_panels_panes_entity_make_current_access()
1 string reference to 'fieldable_panels_panes_entity_make_current_access'
- fieldable_panels_panes_menu in ./
fieldable_panels_panes.module - Implements hook_menu().
File
- ./
fieldable_panels_panes.module, line 700 - Maintains an entity that appears as panel pane content.
Code
function fieldable_panels_panes_entity_make_current_access($entity) {
return fieldable_panels_panes_access('update', $entity) && $entity->vid != $entity->current_vid;
}