/[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.33, Thu Sep 3 12:40:24 2009 UTC revision 1.34, Fri Sep 4 09:10:38 2009 UTC
# Line 1  Line 1 
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
# Line 254  function dashboard_user_page_load($path Line 254  function dashboard_user_page_load($path
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;
# Line 281  function dashboard_user_tabs() { Line 279  function dashboard_user_tabs() {
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',

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

  ViewVC Help
Powered by ViewVC 1.1.2