| 1 |
<?php |
<?php |
| 2 |
// $Id: dashboard.module,v 1.33 2009/09/03 12:40:24 drumm Exp $ |
// $Id: dashboard.module,v 1.34 2009/09/04 09:10:38 drumm Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 255 |
*/ |
*/ |
| 256 |
function dashboard_user_tabs() { |
function dashboard_user_tabs() { |
| 257 |
$links = array(); |
$links = array(); |
| 258 |
foreach (dashboard_user_page_load() as $path => $page) { |
$pages = dashboard_user_page_load(); |
| 259 |
|
foreach ($pages as $path => $page) { |
| 260 |
$key = 'dashboard-page-' . $page->page_id .' dashboard-path-'. $page->path; |
$key = 'dashboard-page-' . $page->page_id .' dashboard-path-'. $page->path; |
| 261 |
$href = ($path === '') ? 'dashboard' : 'dashboard/' . $page->path; |
$href = ($path === '') ? 'dashboard' : 'dashboard/' . $page->path; |
| 262 |
if ($href === $_GET['q']) { |
if ($href === $_GET['q']) { |
| 267 |
'attributes' => array('class' => 'nav-tab'), |
'attributes' => array('class' => 'nav-tab'), |
| 268 |
); |
); |
| 269 |
} |
} |
| 270 |
else { |
elseif ($path !== $pages['']->path) { |
| 271 |
$links[$key] = array( |
$links[$key] = array( |
| 272 |
'title' => $page->title, |
'title' => $page->title, |
| 273 |
'href' => $href, |
'href' => $href, |