$link) { if (strstr($module, 'calendar')) { // remove the broken link back to the calendar - see http :// drupal.org/node/462748#comment-2099126 // don't know if this breaks any other calendar links?! unset($links[$module]); } } } function mazeltov_form_mazeltov_node_form_alter(&$form, $form_state) { $form_id = "mazeltov_node_form"; if($form_id == "mazeltov_node_form") { //print_r($form); $form[body_field][body]['#title'] = 'Mazel Tov Message'; $form[body_field][body]['#rows'] = 5; $form[revision_information]['#access'] = FALSE; $form[author]['#access'] = FALSE; $form[comment]['#access'] = FALSE; $form[options]['#access'] = FALSE; $form[body_field][format]['#access'] = FALSE; } } function mazeltov_form_class_node_form_alter(&$form, &$form_state) { $form[revision_information]['#access'] = FALSE; $form[author]['#access'] = FALSE; $form[comment]['#access'] = FALSE; // $form[options]['#access'] = FALSE; $form[body_field][format]['#access'] = FALSE; // print_r("Form Dump\n"); // print_r($form); return; } function mazeltov_debug ($message) { $type = "mazeltov"; watchdog($type, $message, $variables = array(), $severity = WATCHDOG_NOTICE, $link = NULL); } function mazeltov_form_donation_form_build_alter(&$form, &$form_state) { // mazeltov_debug("donation form_idxxx"); }