You are here

function file_admin_action_info in File admin 7

Implements hook_action_info().

File

./file_admin.module, line 382
Enhances file administration by adding published, promote, and sticky fields.

Code

function file_admin_action_info() {
  return array(
    'file_admin_publish_action' => array(
      'type' => 'file',
      'label' => t('Publish file'),
      'configurable' => FALSE,
      'triggers' => array(
        'entity_presave',
      ),
    ),
    'file_admin_unpublish_action' => array(
      'type' => 'file',
      'label' => t('Unpublish file'),
      'configurable' => FALSE,
      'triggers' => array(
        'entity_presave',
      ),
    ),
  );
}