You are here

function HOOK_media_acquiadam_browser_info_alter in Media: Acquia DAM 7

Alter the asset properties being displayed within the information modal.

Parameters

array $data: An array of properties, metadata, and a preview image.

array $context: Information about the asset.

File

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

Code

function HOOK_media_acquiadam_browser_info_alter(array &$data, array $context) {
  if ('jpg' == drupal_tolower($context['asset']['filetype'])) {
    $data['properties']['custom-property'] = [
      t('A custom property'),
      format_date(REQUEST_TIME),
    ];
  }
}