function hook_media_browser_params_alter in D7 Media 7.3
Same name and namespace in other branches
- 7.4 media.api.php \hook_media_browser_params_alter()
- 7.2 media.api.php \hook_media_browser_params_alter()
Alter a singleton of the params passed to the media browser.
Parameters
array $stored_params: An array of parameters provided when a media_browser is launched.
See also
1 function implements hook_media_browser_params_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_media_browser_params_alter in modules/
media_wysiwyg/ media_wysiwyg.module - Implements hook_media_browser_params_alter().
1 invocation of hook_media_browser_params_alter()
- media_set_browser_params in ./
media.module - Provides a singleton of the params passed to the media browser.
File
- ./
media.api.php, line 133 - Hooks provided by the Media module.
Code
function hook_media_browser_params_alter(&$stored_params) {
$stored_params['view_mode'] = 'custom';
$stored_params['types'][] = 'document';
unset($stored_params['enabledPlugins'][0]);
}