function fieldable_panels_panes_entity_title in Fieldable Panels Panes (FPP) 7
Provide a safe title for an entity from the entity.
2 string references to 'fieldable_panels_panes_entity_title'
- fieldable_panels_panes_entity_property_info in ./
fieldable_panels_panes.info.inc - Implements hook_entity_property_info().
- fieldable_panels_panes_menu in ./
fieldable_panels_panes.module - Implements hook_menu().
File
- ./
fieldable_panels_panes.module, line 678 - Maintains an entity that appears as panel pane content.
Code
function fieldable_panels_panes_entity_title($entity) {
if (!empty($entity->admin_title)) {
return $entity->admin_title;
}
if (!empty($entity->title)) {
return $entity->title;
}
return t('No title');
}