function file_entity_file_operations

cis7 file_entity.module file_entity_file_operations()
cle7 file_entity.module file_entity_file_operations()
elmsmedia7 file_entity.module file_entity_file_operations()
icor7 file_entity.module file_entity_file_operations()
meedjum_blog7 file_entity.module file_entity_file_operations()
mooc7 file_entity.module file_entity_file_operations()

Implements hook_file_operations().

File

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

Code

function file_entity_file_operations() {
  $operations = array(
    'permanent' => array(
      'label' => t('Indicate that the selected files are permanent and should not be deleted'),
      'callback' => 'file_entity_mass_update',
      'callback arguments' => array('updates' => array('status' => FILE_STATUS_PERMANENT)),
    ),
    'temporary' => array(
      'label' => t('Indicate that the selected files are temporary and should be removed during cron runs'),
      'callback' => 'file_entity_mass_update',
      'callback arguments' => array('updates' => array('status' => 0)),
    ),
    'delete' => array(
      'label' => t('Delete selected files'),
      'callback' => NULL,
    ),
  );
  return $operations;
}
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.