solutiondrop
9/9/2015 - 2:51 PM

How to use the dsm( ) Devel function to print the $form array From http://drupal.stackexchange.com/questions/12679/how-to-use-the-dsm-devel

/**
* Implements hook_form_alter().
*/
function foo_form_alter(&$form, $form_state, $form_id) {
  if ($form_id == 'search_theme_form') {
    dpm($form);
  }
}