You are here

function media_module_test_media_browser_plugins_alter in D7 Media 7.3

Same name and namespace in other branches
  1. 7.4 tests/media_module_test.module \media_module_test_media_browser_plugins_alter()
  2. 7.2 tests/media_module_test.module \media_module_test_media_browser_plugins_alter()

Implements hook_media_browser_plugins_alter().

1 string reference to 'media_module_test_media_browser_plugins_alter'
MediaHooksTestCase::testMediaBrowserHooks in tests/media.test
Tests that the media browser hooks.

File

tests/media_module_test.module, line 41
Provides Media module pages for testing purposes.

Code

function media_module_test_media_browser_plugins_alter(&$plugin_output) {

  // Allow tests to enable or disable this hook.
  if (!variable_get('media_module_test_media_browser_plugins_alter', FALSE)) {
    return;
  }
  $plugin_output['media_module_test']['test']['#markup'] = '<p>' . t('Altered browser plugin output.') . '</p>';
}