Need an isset($form['#form_id']) for twitter_bootstrap_form_alter (in form.inc).

/**
 * Implements hook_form_alter().
 */
function twitter_bootstrap_form_alter(&$form, &$form_state, $form_id) {
  ...
  // Only wrap in container for certain form
  if(isset($form['#form_id']) && !in_array($form['#form_id'], $form_ids) && !isset($form['#node_edit_form'])) {
    $form['actions']['#theme_wrappers'] = array();    
  }
}

Comments

Docc’s picture

Assigned: Unassigned » Docc
Status: Active » Closed (fixed)

Hmz shouldnt a form always have a form_id? Anyway, commited. Thanks :)

nagiek’s picture

Sometimes, CTools wizard adds the form_id after. :p

Thanks Docc

andregriffin’s picture

Project: Twitter's Bootstrap » Bootstrap