function HOOK_media_acquiadam_browser_assets_alter in Media: Acquia DAM 7
Alter DAM browser assets before displaying them to the user.
Note that adding or removing assets here may cause unexpected behavior within the paging mechanism unless adjustments are made.
Parameters
array $assets: The array of assets being shown to the user.
array $context: An array containing information about the DAM browser state.
File
- modules/
media_acquiadam_browser/ media_acquiadam_browser.api.php, line 14
Code
function HOOK_media_acquiadam_browser_assets_alter(array &$assets, array $context) {
foreach ($assets as $index => $asset) {
if (drupal_tolower($asset['filetype']) == 'jpg') {
unset($assets[$index]);
}
}
}