function slickgrid_form_alter in Slickgrid 6
Same name and namespace in other branches
- 7.2 slickgrid.module \slickgrid_form_alter()
Implementation of hook_form_alter().
File
- ./
slickgrid.module, line 255
Code
function slickgrid_form_alter(&$form, $form_state, $form_id) {
global $user;
switch ($form_id) {
case 'views_ui_rearrange_form':
// We want to reset field visiabilty & order when views fields are rearranged
// Add another submit handler so we can get a handle on this
$form['buttons']['submit']['#submit'][] = 'slickgrid_views_ui_rearrange_form_submit';
break;
}
// Is this a node type form being displayed in a pop up?
if (isset($form['type']) && isset($form['#node']) && $form['type']['#value'] . '_node_form' == $form_id && arg(0) == 'slickgrid') {
$form['#pre_render'][] = 'slickgrid_node_form_pre_render';
}
}