| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 <?php 2 3 // $Id$ 4 5 /** 6 * @file 7 * Customizes mazeltov creation 8 * 9 */ 10 11 function mazeltov_link_alter(&$links, $node) { 12 foreach ($links as $module => $link) { 13 if (strstr($module, 'calendar')) { 14 // remove the broken link back to the calendar - see http :// drupal.org/node/462748#comment-2099126 15 // don't know if this breaks any other calendar links?! 16 unset($links[$module]); 17 } 18 } 19 } 20 21 function mazeltov_form_mazeltov_node_form_alter(&$form, $form_state) { 22 $form_id = "mazeltov_node_form"; 23 if($form_id == "mazeltov_node_form") { 24 //print_r($form); 25 $form[body_field][body]['#title'] = 'Mazel Tov Message'; 26 $form[body_field][body]['#rows'] = 5; 27 $form[revision_information]['#access'] = FALSE; 28 $form[author]['#access'] = FALSE; 29 $form[comment]['#access'] = FALSE; 30 $form[options]['#access'] = FALSE; 31 $form[body_field][format]['#access'] = FALSE; 32 } 33 } 34 35 function mazeltov_form_class_node_form_alter(&$form, &$form_state) { 36 37 $form[revision_information]['#access'] = FALSE; 38 $form[author]['#access'] = FALSE; 39 $form[comment]['#access'] = FALSE; 40 // $form[options]['#access'] = FALSE; 41 $form[body_field][format]['#access'] = FALSE; 42 // print_r("Form Dump\n"); 43 // print_r($form); 44 45 46 return; 47 } 48 49 function mazeltov_debug ($message) { 50 $type = "mazeltov"; 51 watchdog($type, $message, $variables = array(), $severity = WATCHDOG_NOTICE, $link = NULL); 52 } 53 54 function mazeltov_form_donation_form_build_alter(&$form, &$form_state) { 55 56 // mazeltov_debug("donation form_idxxx"); 57 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |