Re: Where are top right corner links specified?

Originally Posted by
Systems Navigator
Hello there,
Thanks for your help, but I am still not getting it.
I created the custom php field and entered the following code:
<?php
if (is_admin($current_user)) $global_control_links['employees'] = array(
'linkinfo' => array($app_strings['LBL_EMPLOYEES']=> 'index.php?module=Employees&action=index'),
'submenu' => ''
);
?>
However this does not give any result. But If I enter the additional part
if (is_admin($current_user))
To the orginal file, it works fine.
What am I doing wrong?
Thanks!
What you need to do in the custom file is unset the item if the user is not admin
so try
if (!is_admin($current_user)) {
unset($global_control_links['employees']);
}
Mike Solomon
Development Manager
Ivy Ltd
www.ivy.ltd.uk]www.ivy.ltd.uk
php version 5.2.6
MySql 5.1.59
Bookmarks