Wednesday, January 02, 2008

drupal_set_message

Recently I found this is a very useful function to gain information of a drupal page. It could print out the info on top of the page.

For example, to get all the name of text area field, I can put the follow little code on:

function mythemename_tinymce_theme($init, $textarea_name, $theme_name, $is_running) {
drupal_set_message($textarea_name);
}