1 file.module file_action_info()

Implements hook_action_info().

File

core/modules/file/file.module, line 96
Defines a "managed_file" Form API field and a "file" field for Field module.

Code

function file_action_info() {
  $actions['file_delete'] = array(
    'label' => t('Delete file(s)'),
    'type' => 'file',
    'callback' => 'file_delete_action',
    'file' => 'file.actions.inc',
  );

  return $actions;
}