function media_access

cis7 media.module media_access($op, $account = NULL)
cle7 media.module media_access($op, $account = NULL)
elmsmedia7 media.module media_access($op, $account = NULL)
icor7 media.module media_access($op, $account = NULL)
meedjum_blog7 media.module media_access($op, $account = NULL)
mooc7 media.module media_access($op, $account = NULL)

Access callback for files. This function is deprecated.

@todo Completely remove this function in favor of file_entity_access after a few releases, to ensure rest of contib catches up.

File

sites/all/modules/ulmus/media/media.module, line 99
Media API

Code

function media_access($op, $account = NULL) {
  return user_access('administer files', $account);
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.