You are here

function shorten_save_js in Shorten URLs 7

Same name and namespace in other branches
  1. 8.2 shorten.module \shorten_save_js()
  2. 8 shorten.module \shorten_save_js()
  3. 6 shorten.module \shorten_save_js()
  4. 7.2 shorten.module \shorten_save_js()

JS callback for submitting the Shorten form.

1 string reference to 'shorten_save_js'
shorten_form_shorten in ./shorten.module
Builds a form which allows shortening of a URL via the UI.

File

./shorten.module, line 578
Shortens URLs via external services.

Code

function shorten_save_js($form, $form_state) {
  $step = $form_state['storage']['step'];
  $new_form = array();
  $new_form['opendiv'] = $form['opendiv'];
  $new_form['shortened_url_' . $step] = $form['shortened_url_' . $step];
  $new_form['url_' . $step] = $form['url_' . $step];
  $new_form['closediv'] = $form['closediv'];
  return $new_form;
}