You are here

function sharebar_ahah_csscontainer_callback_helper in ShareBar 6

Does the very standard things that must be done in any normal callback. Used by each ahah callback in this module.

1 call to sharebar_ahah_csscontainer_callback_helper()
sharebar_ahah_csscontainer_callback in ./sharebar.admin.inc
AHAH callback for custom css container id.

File

./sharebar.module, line 197
Various module information.

Code

function sharebar_ahah_csscontainer_callback_helper() {
  $form_state = array(
    'storage' => NULL,
    'submitted' => FALSE,
  );
  $form_build_id = $_POST['form_build_id'];
  $form = form_get_cache($form_build_id, $form_state);
  $args = $form['#parameters'];
  $form_id = array_shift($args);
  $form_state['post'] = $form['#post'] = $_POST;

  // Enable the submit/validate handlers to determine whether AHAH-submittted.
  $form_state['ahah_submission'] = TRUE;
  $form['#programmed'] = $form['#redirect'] = FALSE;
  drupal_process_form($form_id, $form, $form_state);
  $form = drupal_rebuild_form($form_id, $form_state, $args, $form_build_id);
  return $form;
}