eternalistic
8/30/2013 - 10:57 PM

Drupal 7 - Pre function to print out variables

Drupal 7 - Pre function to print out variables

function print_r_html ($arr) {
  ?><pre><?
  print_r($arr);
  ?></pre><?
}

function THEMENAME_form_alter(&$form, &$form_state, $form_id) {
  print_r_html($form);
}