You are here

function pathauto_form_file_entity_edit_alter in File Entity (fieldable files) 7.2

Same name and namespace in other branches
  1. 7.3 file_entity.module \pathauto_form_file_entity_edit_alter()

Implements hook_form_FORM_ID_alter() on behalf of pathauto.module.

Add the Pathauto settings to the file form.

File

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

Code

function pathauto_form_file_entity_edit_alter(&$form, &$form_state, $form_id) {
  $file = $form_state['file'];
  $langcode = pathauto_entity_language('file', $file);
  pathauto_field_attach_form('file', $file, $form, $form_state, $langcode);
}