You are here

function fieldable_panels_panes_entities_title in Fieldable Panels Panes (FPP) 7

Provide a safe title for an entity pane type based upon the URL.

1 string reference to 'fieldable_panels_panes_entities_title'
fieldable_panels_panes_menu in ./fieldable_panels_panes.module
Implements hook_menu().

File

./fieldable_panels_panes.module, line 653
Maintains an entity that appears as panel pane content.

Code

function fieldable_panels_panes_entities_title($type) {
  $type = str_replace('-', '_', $type);
  $entity_info = entity_get_info('fieldable_panels_pane');
  if (isset($entity_info['bundles'][$type])) {
    return $entity_info['bundles'][$type]['label'];
  }
}