Revision 2b3c8cc1
Added by Assos Assos about 9 years ago
drupal7/sites/all/modules/media/modules/media_internet/tests/media_internet_test.module | ||
---|---|---|
9 | 9 |
* Implements hook_media_internet_providers(). |
10 | 10 |
*/ |
11 | 11 |
function media_internet_test_media_internet_providers() { |
12 |
// Allow tests to enable or disable this hook. |
|
13 |
if (!variable_get('media_internet_test_media_internet_providers', FALSE)) { |
|
14 |
return array(); |
|
15 |
} |
|
16 |
|
|
12 | 17 |
return array( |
13 | 18 |
'MediaInternetTestHandler' => array( |
14 | 19 |
'title' => t('Media Internet Test'), |
... | ... | |
16 | 21 |
); |
17 | 22 |
} |
18 | 23 |
|
24 |
/** |
|
25 |
* Implements hook_media_browser_plugin_info_alter_alter(). |
|
26 |
*/ |
|
27 |
function media_internet_test_media_internet_providers_alter(&$providers) { |
|
28 |
// Allow tests to enable or disable this hook. |
|
29 |
if (!variable_get('media_internet_test_media_internet_providers_alter', FALSE)) { |
|
30 |
return; |
|
31 |
} |
|
32 |
|
|
33 |
$providers['MediaInternetTestHandler']['title'] = t('Altered provider title'); |
|
34 |
} |
|
35 |
|
|
19 | 36 |
/** |
20 | 37 |
* Implements hook_stream_wrappers(). |
21 | 38 |
*/ |
Also available in: Unified diff
Weekly update of contrib modules