You are here

function HOOK_media_acquiadam_browser_jump_list_alter in Media: Acquia DAM 7

Alter the list of quick links available for a given asset.

Parameters

array $links: An array of links as passed to theme('ctools_dropdown', ...).

array $context: Information about the asset.

File

modules/media_acquiadam_browser/media_acquiadam_browser.api.php, line 47

Code

function HOOK_media_acquiadam_browser_jump_list_alter(array &$links, array $context) {
  if ('folder' == $context['asset']
    ->getType()) {
    $links[] = [
      'title' => t('This is a folder'),
    ];
  }
}