function file_entity_permissions_get_configured_types

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 file_entity.module file_entity_permissions_get_configured_types()
cle7 file_entity.module file_entity_permissions_get_configured_types()
elmsmedia7 file_entity.module file_entity_permissions_get_configured_types()
icor7 file_entity.module file_entity_permissions_get_configured_types()
meedjum_blog7 file_entity.module file_entity_permissions_get_configured_types()
mooc7 file_entity.module file_entity_permissions_get_configured_types()

Returns an array of file types that should be managed by permissions.

By default, this will include all file types in the system. To exclude a specific file from getting permissions defined for it, set the file_entity_permissions_$type variable to 0. File entity does not provide an interface for doing so, however, contrib modules may exclude their own files in hook_install(). Alternatively, contrib modules may configure all file types at once, or decide to apply some other hook_file_entity_access() implementation to some or all file types.

Return value

An array of file types managed by this module.

Related topics

3 calls to file_entity_permissions_get_configured_types()
file_entity_file_entity_access in sites/all/modules/ulmus/file_entity/file_entity.module
Implements hook_file_entity_access().
file_entity_permission in sites/all/modules/ulmus/file_entity/file_entity.module
Implement hook_permission().
media_update_7200 in sites/all/modules/ulmus/media/media.install
Replace 'view media' perm from all users having the role with 'view file'.

File

sites/all/modules/ulmus/file_entity/file_entity.module, line 1994
Extends Drupal file entities to be fieldable and viewable.

Code

function file_entity_permissions_get_configured_types() {

  $configured_types = array();

  foreach (file_type_get_enabled_types() as $type => $info) {
    if (variable_get('file_entity_permissions_' . $type, 1)) {
      $configured_types[] = $type;
    }
  }

  return $configured_types;
}
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.