Fix for customize menus by theme override

  1.  This code snippet I took  from internet services 2 theme, they use it to change primary links
  2.  now I want to customize my menu in the same way
  3.  
  4. function internet_services_primary($items = array()) {
  5.   $menu_options = menu_get_menus();
  6.   $primary_links = variable_get('menu_primary_links_source', 'primary-links');
  7.   $output = '<div class="title">' . $menu_options[$primary_links] . '</div>';
  8.   $output .= theme('links', $items);
  9.   return $output;
  10. }
  11.  
  12.  
  13.  my menu name= menu-default
  14.  what going on here, am I in the right direction?
  15.  
  16. function internet_services_custommenu($items = array()) {
  17.  
  18.   $menu_options = menu_get_menus();
  19.   $custom_links = variable_get('menu_default_source', 'menu-default');
  20.  
  21.   $output = '<div class="title">' . $menu_options[$custom_links] . '</div>';
  22.   $output .= theme('links', $items);
  23.   return $output;
  24. }

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.