root/elgg/trunk/mod/projects/pending.php

Revision 143, 0.5 kB (checked in by bettse, 1 year ago)

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

  • Property svn:executable set to *
Line 
1 <?php
2
3     require_once(dirname(dirname(__FILE__))."/../includes.php");
4
5     global $page_owner;
6     
7     $username = trim(optional_param('profile_name',''));
8     $user_id = user_info_username("ident", $username);
9     if (!$user_id) {
10         $user_id = $page_owner;
11     } else {
12         $page_owner = $user_id;
13         $profile_id = $user_id;
14     }
15     
16     define('context','projects');
17     templates_page_setup();
18     
19     $title = __gettext("Pending Project Requests");
20
21     $body = run("projects:pending");
22     
23     templates_page_output($title, $body);
24
25 ?>
26
Note: See TracBrowser for help on using the browser.