/[drupal]/contributions/modules/dashboard/dashboard.module
ViewVC logotype

Diff of /contributions/modules/dashboard/dashboard.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.34, Fri Sep 4 09:10:38 2009 UTC revision 1.35, Fri Sep 4 11:19:46 2009 UTC
# Line 1  Line 1 
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
# Line 255  function dashboard_user_page_load($path Line 255  function dashboard_user_page_load($path
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']) {
# Line 266  function dashboard_user_tabs() { Line 267  function dashboard_user_tabs() {
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,

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.35

  ViewVC Help
Powered by ViewVC 1.1.2