You are here

function slickgrid_execute in Slickgrid 6

File

./slickgrid.callbacks.inc, line 124

Code

function slickgrid_execute($form_id, &$form_state) {
  $args = func_get_args();

  // Make sure $form_state is passed around by reference.
  $args[1] =& $form_state;
  $form = call_user_func_array('drupal_retrieve_form', $args);
  $form['#post'] = $form_state['values'];
  drupal_prepare_form($form_id, $form, $form_state);
  $form['#validate'][] = 'slickgrid_callback_form_validate';
  drupal_process_form($form_id, $form, $form_state);
}