You are here

function hook_media_internet_providers 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()
  2. 7 modules/media_internet/media_internet.api.php \hook_media_internet_providers()
  3. 7.2 modules/media_internet/media_internet.api.php \hook_media_internet_providers()

Returns a list of Internet media providers for URL/embed code testing.

Return value

array A nested array of provider information, keyed by class name. This class must implement a claim() method and may (should) extend the MediaInternetBaseHandler class. Each provider info array may have the following keys:

  • title: (required) A name to be used when listing the currently supported providers on the web tab of the media browser.
  • hidden: (optional) Boolean to prevent the provider title from being listed on the web tab of the media browser.
  • weight: (optional) Integer to determine the tab order. Defaults to 0.

See also

hook_media_internet_providers_alter()

media_internet_get_providers()

2 functions implement hook_media_internet_providers()

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

media_internet_media_internet_providers in modules/media_internet/media_internet.media.inc
Implements hook_media_internet_providers().
media_internet_test_media_internet_providers in modules/media_internet/tests/media_internet_test.module
Implements hook_media_internet_providers().
1 invocation of hook_media_internet_providers()
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 25
Hooks provided by the media_internet module.

Code

function hook_media_internet_providers() {
  return array(
    'MyModuleYouTubeHandler' => array(
      'title' => t('YouTube'),
      'hidden' => TRUE,
    ),
  );
}