You are here

function slickgrid_form_alter in Slickgrid 7.2

Same name and namespace in other branches
  1. 6 slickgrid.module \slickgrid_form_alter()

Implentats hook_form_alter

Add an after build function to supress redirecting forms when used in the slickgrid callback

File

./slickgrid.module, line 690

Code

function slickgrid_form_alter(&$form, &$form_state, $form_id) {
  if (arg(0) == 'slickgrid' && arg(1) == 'callback') {
    $form['#after_build'][] = 'slickgrid_form_redirect_handler';
  }
}