Risposte:
Avvia un modulo personalizzato, inserisci questo codice:
/**
* Implements hook_form_alter().
*/
function foo_form_alter(&$form, $form_state, $form_id) {
if ($form_id == 'search_theme_form') {
dpm($form);
}
}
Inoltre, potresti voler usare dpm () su dsm () poiché quest'ultima è una funzione legacy.
function THEME_form_search_theme_form_alter (&$form, &$form_state){
krumo ($form); // you can use DSM as well here
}
Sostituisci THEME con il nome del tuo tema e inseriscilo nel tuo template.php, se vuoi farlo da un modulo, sostituisci THEME con il nome del tuo modulo e inserisci quella funzione nel tuo file .module
Utilizzare drupal_retrieve_form per ottenere l'array di moduli strutturati:
$form_state = array();
dsm(drupal_retrieve_form('search_theme_form', &$form_state));
dpm($form_state)
anche dopo l'invio