function pathauto_form_file_entity_edit_alter

cis7 file_entity.module pathauto_form_file_entity_edit_alter(&$form, &$form_state, $form_id)
cle7 file_entity.module pathauto_form_file_entity_edit_alter(&$form, &$form_state, $form_id)
elmsmedia7 file_entity.module pathauto_form_file_entity_edit_alter(&$form, &$form_state, $form_id)
icor7 file_entity.module pathauto_form_file_entity_edit_alter(&$form, &$form_state, $form_id)
meedjum_blog7 file_entity.module pathauto_form_file_entity_edit_alter(&$form, &$form_state, $form_id)
mooc7 file_entity.module pathauto_form_file_entity_edit_alter(&$form, &$form_state, $form_id)

Implements hook_form_FORM_ID_alter() on behalf of pathauto.module.

Add the Pathauto settings to the file form.

File

sites/all/modules/ulmus/file_entity/file_entity.module, line 2259
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);
}
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.