You are here

function hook_media_internet_providers_alter in D7 Media 7.3

Same name and namespace in other branches
  1. 7.4 modules/media_internet/media_internet.api.php \hook_media_internet_providers_alter()
  2. 7.2 modules/media_internet/media_internet.api.php \hook_media_internet_providers_alter()

Alter the list of Internet media providers.

Parameters

array $providers: The associative array of Internet media provider definitions from hook_media_internet_providers().

See also

hook_media_internet_providers()

media_internet_get_providers()

1 function implements hook_media_internet_providers_alter()

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

media_internet_test_media_internet_providers_alter in modules/media_internet/tests/media_internet_test.module
Implements hook_media_browser_plugin_info_alter_alter().
1 invocation of hook_media_internet_providers_alter()
media_internet_get_providers in modules/media_internet/media_internet.module
Gets the list of Internet media providers.

File

modules/media_internet/media_internet.api.php, line 44
Hooks provided by the media_internet module.

Code

function hook_media_internet_providers_alter(&$providers) {
  $providers['MyModuleYouTubeHandler']['title'] = t('Google video hosting');
  $providers['MyModuleYouTubeHandler']['weight'] = 42;
}