You are here

function node_gallery_api_upload_submit in Node Gallery 7

Submit handler for uploads.

1 string reference to 'node_gallery_api_upload_submit'
node_gallery_api_form_alter in ./node_gallery_api.module
Implements hook_form_alter().

File

./node_gallery_api.module, line 280
Node Gallery module.

Code

function node_gallery_api_upload_submit($form, &$form_state) {
  $form_state['values'][$form_state['values']['node_gallery_field_name']][LANGUAGE_NONE][0]['target_id'] = $form_state['values']['node_gallery_target_id'];
}