You are here

public function MediaBrowserPlugin::access in D7 Media 7.4

Same name and namespace in other branches
  1. 7.2 includes/MediaBrowserPlugin.inc \MediaBrowserPlugin::access()
  2. 7.3 includes/MediaBrowserPlugin.inc \MediaBrowserPlugin::access()

Implements MediaBrowserPluginInterface::access().

Overrides MediaBrowserPluginInterface::access

4 methods override MediaBrowserPlugin::access()
MediaBrowserInternet::access in modules/media_internet/includes/MediaBrowserInternet.inc
Implements MediaBrowserPluginInterface::access().
MediaBrowserUpload::access in includes/MediaBrowserUpload.inc
Implements MediaBrowserPluginInterface::access().
MediaBrowserView::access in includes/MediaBrowserView.inc
Implements MediaBrowserPluginInterface::access().
MediaModuleTest::access in tests/includes/MediaModuleTest.inc
Implements MediaBrowserPluginInterface::access().

File

includes/MediaBrowserPlugin.inc, line 40
Definition of MediaBrowserPlugin.

Class

MediaBrowserPlugin
Defines a Media browser plugin base class.

Code

public function access($account = NULL) {

  // Backwards compatible support for 'access callback' definitions.
  if (isset($this->info['access callback'])) {
    $access_callback = $this->info['access callback'];
    $access_arguments = isset($this->info['access arguments']) ? $this->info['access arguments'] : array();
    return function_exists($access_callback) && call_user_func_array($access_callback, $access_arguments);
  }
  return TRUE;
}