You are here

function file_entity_action_info_alter in File Entity (fieldable files) 7.3

Same name and namespace in other branches
  1. 8.2 file_entity.module \file_entity_action_info_alter()
  2. 7.2 file_entity.module \file_entity_action_info_alter()

Implements hook_action_info_alter().

File

./file_entity.module, line 855
Extends Drupal file entities to be fieldable and viewable.

Code

function file_entity_action_info_alter(&$actions) {
  if (module_exists('pathauto')) {
    $actions['pathauto_file_update_action'] = array(
      'type' => 'file',
      'label' => t('Update file alias'),
      'configurable' => FALSE,
    );
  }
}