Changeset 143

Show
Ignore:
Timestamp:
11/14/08 15:50:44 (1 year ago)
Author:
bettse
Message:

fixes ##2756
This is the code I wrote, adds a pending projects area to the projects module with links for approval.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • elgg/trunk/mod/projects/lib.php

    r88 r143  
    77    $function['projects:browse'][] = dirname(__FILE__) . '/lib/function_browse.php'; 
    88    $function['projects:graveyard'][] = dirname(__FILE__) . '/lib/function_graveyard.php'; 
     9    $function['projects:pending'][] = dirname(__FILE__) . '/lib/function_pending.php'; 
    910 
    1011//    $PAGE->search_menu[] = array( 'name' => __gettext("Projects"), 'user_type' => 'projects'); 
     
    6061            'name' => 'projects:projectgraveyard', 
    6162            'html' => '<a href="' . $CFG->wwwroot . $_SESSION['username'] . '/projects/graveyard/">' . __gettext("Project Graveyard") . '</a>'); 
    62  
     63        if(isloggedin() && user_flag_get("admin", $_SESSION['userid'])){ 
     64            $PAGE->menu_sub[] = array ( 
     65                'name' => 'projects:pendingprojects', 
     66                'html' => '<a href="' . $CFG->wwwroot . $_SESSION['username'] . '/projects/pending/">' . __gettext("Pending Project Requests") . '</a>'); 
     67        }//end admin if 
    6368    }//end context if 
    6469