function commons_media_form_file_entity_add_upload_alter in Drupal Commons 7.3
Implements hook_form_FORM_ID_alter().
File
- modules/
commons/ commons_media/ commons_media.module, line 258
Code
function commons_media_form_file_entity_add_upload_alter(&$form, &$form_state, $form_id) {
// Automatically upload selected files.
if ($form['#step'] == 1) {
$form['#attached']['js'][] = drupal_get_path('module', 'commons_media') . '/commons_media_autoupload.js';
}
}