D5

Fix for Fix for expanded menu overide for set MID

  1. /**
  2. * Implementation of theme_menu_item().
  3. * Add active class and custom id to current menu item links.
  4. */
  5. function zen_menu_item($mid, $children = '', $leaf = TRUE) {
  6.   $item = menu_get_item($mi

Fix for expanded menu overide for set MID

  1. /**
  2. * Implementation of theme_menu_item().
  3. * Add active class and custom id to current menu item links.
  4. */
  5. function zen_menu_item($mid, $children = '', $leaf = TRUE) {
  6.   $item = menu_get_item($mi

expanded menu overide for set MID

  1. /**
  2. * Implementation of theme_menu_item().
  3. * Add active class and custom id to current menu item links.
  4. */
  5. function zen_menu_item($mid, $children = '', $leaf = TRUE) {
  6.   $item = menu_get_item($mi

Fix for Add more options to weight form element

  1. /**
  2.  * Implementation of hook_elements().
  3.  */
  4. function example_elements() {
  5.   // add our process function to weight type element
  6.   $type = array();
  7.   $type['weight']['#process'] = array('example

Add more options to weight form element

  1. /**
  2.  * Implementation of hook_elements().
  3.  */
  4. function example_elements() {
  5.   // add our process function to weight type element
  6.   $type = array();
  7.   $type['weight']['#process'] = array('resourc

views table theming function

  1. /**
  2.  * Display the nodes of a view as a table.
  3.  */
  4. function theme_views_view_table($view, $nodes, $type) {
  5.   $fields = _views_get_fields();
  6.  
  7.   foreach ($nodes as $node) {
  8.     $row = array();

file_copy to remote site

  1. /**
  2.  * Copy a file from one site to another.
  3.  *
  4.  * Error I get "The selected file files/Snap1.png could not be uploaded, because the destination  is not properly configured."
  5.  */

cck variables get printed as null in Drupal 5 view

  1. //in template.php----------------------------
  2.  
  3.  
  4. function phptemplate_views_view_list_promotion_box($view, $nodes, $type) {
  5.   /*
  6.   $fields = _views_get_fields();
Syndicate content