public function MediaBrowserPlugin::access

cis7 MediaBrowserPlugin.inc public MediaBrowserPlugin::access($account = NULL)
cle7 MediaBrowserPlugin.inc public MediaBrowserPlugin::access($account = NULL)
elmsmedia7 MediaBrowserPlugin.inc public MediaBrowserPlugin::access($account = NULL)
icor7 MediaBrowserPlugin.inc public MediaBrowserPlugin::access($account = NULL)
meedjum_blog7 MediaBrowserPlugin.inc public MediaBrowserPlugin::access($account = NULL)
mooc7 MediaBrowserPlugin.inc public MediaBrowserPlugin::access($account = NULL)

Implements MediaBrowserPluginInterface::access().

Overrides MediaBrowserPluginInterface::access

3 methods override MediaBrowserPlugin::access()
MediaBrowserInternet::access in sites/all/modules/ulmus/media/modules/media_internet/includes/MediaBrowserInternet.inc
Implements MediaBrowserPluginInterface::access().
MediaBrowserUpload::access in sites/all/modules/ulmus/media/includes/MediaBrowserUpload.inc
Implements MediaBrowserPluginInterface::access().
MediaBrowserView::access in sites/all/modules/ulmus/media/includes/MediaBrowserView.inc
Implements MediaBrowserPluginInterface::access().

File

sites/all/modules/ulmus/media/includes/MediaBrowserPlugin.inc, line 41
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;
}