You are here

function hook_media_browser_plugins_alter in D7 Media 7.4

Same name and namespace in other branches
  1. 7.2 media.api.php \hook_media_browser_plugins_alter()
  2. 7.3 media.api.php \hook_media_browser_plugins_alter()

Alter the plugins before they are rendered.

Parameters

array $plugin_output: The associative array of media browser plugin information from media_get_browser_plugin_info().

See also

hook_media_browser_plugin_info()

media_get_browser_plugin_info()

1 function implements hook_media_browser_plugins_alter()

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

media_module_test_media_browser_plugins_alter in tests/media_module_test.module
Implements hook_media_browser_plugins_alter().
1 invocation of hook_media_browser_plugins_alter()
media_browser in includes/media.browser.inc
Media browser page callback.

File

./media.api.php, line 119
Hooks provided by the Media module.

Code

function hook_media_browser_plugins_alter(&$plugin_output) {
  $plugin_output['upload']['form']['upload']['#title'] = t('Upload 2.0');
  $plugin_output['media_internet']['form']['embed_code']['#size'] = 100;
}