function hook_media_wysiwyg_allowed_view_modes_alter

cis7 media.api.php hook_media_wysiwyg_allowed_view_modes_alter(&$view_modes, $file)
cle7 media.api.php hook_media_wysiwyg_allowed_view_modes_alter(&$view_modes, $file)
elmsmedia7 media.api.php hook_media_wysiwyg_allowed_view_modes_alter(&$view_modes, $file)
icor7 media.api.php hook_media_wysiwyg_allowed_view_modes_alter(&$view_modes, $file)
meedjum_blog7 media.api.php hook_media_wysiwyg_allowed_view_modes_alter(&$view_modes, $file)
mooc7 media.api.php hook_media_wysiwyg_allowed_view_modes_alter(&$view_modes, $file)

Alter a list of view modes allowed for a file embedded in the WYSIWYG.

Parameters

array $view_modes: An array of view modes that can be used on the file when embedded in the WYSIWYG.

object $file: A file entity.

See also

media_get_wysiwyg_allowed_view_modes()

1 function implements hook_media_wysiwyg_allowed_view_modes_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

media_wysiwyg_view_mode_media_wysiwyg_allowed_view_modes_alter in sites/all/modules/ulmus/media/modules/media_wysiwyg_view_mode/media_wysiwyg_view_mode.module
Implements hook_media_wysiwyg_allowed_view_modes_alter().
1 invocation of hook_media_wysiwyg_allowed_view_modes_alter()
media_get_wysiwyg_allowed_view_modes in sites/all/modules/ulmus/media/includes/media.filter.inc
Return a list of view modes allowed for a file embedded in the WYSIWYG.

File

sites/all/modules/ulmus/media/media.api.php, line 117
Hooks provided by the Media module.

Code

function hook_media_wysiwyg_allowed_view_modes_alter(&$view_modes, $file) {
  $view_modes['default']['label'] = t('Display an unmodified version of the file');
  unset($view_modes['preview']);
}