function nav_info(): insert lost comment
This commit is contained in:
parent
cfea3cce77
commit
b0d6c244c5
1 changed files with 7 additions and 3 deletions
|
@ -47,7 +47,11 @@ function nav(&$a) {
|
||||||
* @brief Prepares a list of navigation links
|
* @brief Prepares a list of navigation links
|
||||||
*
|
*
|
||||||
* @param App $a
|
* @param App $a
|
||||||
* @return array
|
* @return array Navigation links
|
||||||
|
* string 'sitelocation' => The webbie (username@site.com)
|
||||||
|
* array 'nav' => Array of links used in the nav menu
|
||||||
|
* string 'banner' => Formatted html link with banner image
|
||||||
|
* array 'userinfo' => Array of user information (name, icon)
|
||||||
*/
|
*/
|
||||||
function nav_info(App $a)
|
function nav_info(App $a)
|
||||||
{
|
{
|
||||||
|
@ -188,6 +192,7 @@ function nav_info(App $a)
|
||||||
$nav['contacts'] = array('contacts', t('Contacts'), '', t('Manage/edit friends and contacts'));
|
$nav['contacts'] = array('contacts', t('Contacts'), '', t('Manage/edit friends and contacts'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Show the link to the admin configuration page if user is admin
|
||||||
if (is_site_admin()) {
|
if (is_site_admin()) {
|
||||||
$nav['admin'] = array('admin/', t('Admin'), '', t('Site setup and configuration'));
|
$nav['admin'] = array('admin/', t('Admin'), '', t('Site setup and configuration'));
|
||||||
}
|
}
|
||||||
|
@ -210,7 +215,6 @@ function nav_info(App $a)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set a menu item in navbar as selected
|
* Set a menu item in navbar as selected
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue