From: Sachin HJ Date: Tue, Dec 17 2013 --- Base (BASE) +++ Locally Modified (Based On LOCAL) @@ -728,6 +728,9 @@ * Gets the page title for the passed operation. */ function entity_ui_get_page_title($op, $entity_type, $entity = NULL) { + module_load_include('inc', 'entity', 'includes/entity.ui'); + $bundle = NULL; + if (isset($entity)) { $label = entity_label($entity_type, $entity); switch ($op) { case 'view': @@ -743,8 +746,7 @@ case 'export': return t('Export @label', array('@label' => $label)); } - if (isset($entity)) { - list(, , $bundle) = entity_extract_ids($entity_type, $entity); + list(,, $bundle) = entity_extract_ids($entity_type, $entity); } return entity_ui_get_action_title($op, $entity_type, $bundle); }