You are here

function search_api_title_delete_page in Search API 7

Title callback for determining which title should be displayed for the "delete" local task.

Parameters

Entity $entity: The server or index for which the menu link is displayed.

Return value

string A translated version of either "Delete" or "Revert".

1 string reference to 'search_api_title_delete_page'
search_api_menu in ./search_api.module
Implements hook_menu().

File

./search_api.module, line 2658
Provides a flexible framework for implementing search services.

Code

function search_api_title_delete_page(Entity $entity) {
  return $entity
    ->hasStatus(ENTITY_OVERRIDDEN) ? t('Revert') : t('Delete');
}