Location: PHPKode > projects > Work Tracker > work-tracker-0.1/modules/prefs/hooks/menus.php
<?php
/* $Id: menus.php 2 2004-08-05 21:42:03Z eroberts $ */
/**
 * @package Issue-Tracker
 * @subpackage Preferences
 */

if (eregi(basename(__FILE__),$_SERVER['PHP_SELF'])) {
  print "Direct module access forbidden.";
  exit;
}

$leftnav_menu["Preferences"] = array(
	"url"		=> "?module=prefs",
  "sub"   => array()
);

if ($_SESSION['group_count'] > 0) {
  $leftnav_menu['Preferences']['sub']['Group Preferences'] = "?module=prefs&action=group";
}

if (is_writable(_THEMES_)
and !ereg("(4.7)|(4.8)",$_SERVER['HTTP_USER_AGENT'])) {
  $leftnav_menu['Preferences']['sub']['Themes & Colors'] = "?module=prefs&action=style";
}
?>
Return current item: Work Tracker