You are here

function cms_content_sync_local_tasks_alter in CMS Content Sync 2.1.x

Same name and namespace in other branches
  1. 8 cms_content_sync.module \cms_content_sync_local_tasks_alter()
  2. 2.0.x cms_content_sync.module \cms_content_sync_local_tasks_alter()

Implements hook_local_tasks_alter().

Parameters

array $local_tasks: Definitions to alter.

File

./cms_content_sync.module, line 2004
Module file for cms_content_sync.

Code

function cms_content_sync_local_tasks_alter(&$local_tasks) {

  // Change tab title based on whether the subscriber is using the cloud or self-hosted version.
  $local_tasks['entity.cms_content_sync.pull']['title'] = _cms_content_sync_get_repository_name();
}