| 1 |
<?php |
<?php |
| 2 |
// $Id: dashboard.module,v 1.32 2009/09/03 11:38:14 drumm Exp $ |
// $Id: dashboard.module,v 1.33 2009/09/03 12:40:24 drumm Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 254 |
* Return a links array of tabs for the dashboard page. |
* Return a links array of tabs for the dashboard page. |
| 255 |
*/ |
*/ |
| 256 |
function dashboard_user_tabs() { |
function dashboard_user_tabs() { |
|
global $user; |
|
|
|
|
| 257 |
$links = array(); |
$links = array(); |
| 258 |
foreach (dashboard_user_page_load() as $path => $page) { |
foreach (dashboard_user_page_load() as $path => $page) { |
| 259 |
$key = 'dashboard-page-' . $page->page_id .' dashboard-path-'. $page->path; |
$key = 'dashboard-page-' . $page->page_id .' dashboard-path-'. $page->path; |
| 279 |
'href' => 'dashboard/widgets', |
'href' => 'dashboard/widgets', |
| 280 |
'attributes' => array('class' => 'nav-tab'), |
'attributes' => array('class' => 'nav-tab'), |
| 281 |
); |
); |
|
$links['dashboard-profile'] = array( |
|
|
'title' => t('Profile'), |
|
|
'href' => 'user/'. $user->uid, |
|
|
'attributes' => array('class' => 'nav-tab'), |
|
|
); |
|
| 282 |
$links['dashboard-link-add'] = array( |
$links['dashboard-link-add'] = array( |
| 283 |
'title' => t('Add a tab <strong>+</strong>'), |
'title' => t('Add a tab <strong>+</strong>'), |
| 284 |
'href' => 'dashboard/add', |
'href' => 'dashboard/add', |