You are here

function media_media_browser_plugin_info in D7 Media 7

Same name and namespace in other branches
  1. 7.4 media.media.inc \media_media_browser_plugin_info()
  2. 7.2 media.media.inc \media_media_browser_plugin_info()
  3. 7.3 media.media.inc \media_media_browser_plugin_info()

Implements hook_media_browser_plugin_info().

File

./media.media.inc, line 11
Media module integration for the Media module.

Code

function media_media_browser_plugin_info() {
  $plugins = array();

  // @TODO: Should we add a permission around this?
  $plugins['library'] = array(
    '#weight' => 10,
  );
  if (user_access('administer media') || user_access('edit media')) {
    $plugins['upload'] = array(
      '#weight' => -10,
    );
  }
  return $plugins;
}