/[drupal]/contributions/modules/autoassignrole/autoassignrole-path.inc
ViewVC logotype

Contents of /contributions/modules/autoassignrole/autoassignrole-path.inc

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


Revision 1.2 - (show annotations) (download) (as text)
Fri Sep 25 16:08:43 2009 UTC (2 months ago) by cyberswat
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +30 -0 lines
File MIME type: text/x-php
Updating head with latest from d6
1 <?php
2 // $Id: autoassignrole-path.inc,v 1.1.2.3 2009/09/21 19:21:18 cyberswat Exp $
3
4 /**
5 * @file
6 *
7 * The autoassignrole-admin.inc file
8 *
9 * Contains path specific functionality
10 */
11
12 require_once drupal_get_path('module', 'user') .'/user.pages.inc';
13
14 function autoassignrole_path($rid) {
15 $page = db_fetch_object(db_query("SELECT description, format FROM {autoassignrole_page} WHERE rid = %d", $rid));
16 $output = check_markup($page->description, $page->format, FALSE);
17 $output .= drupal_get_form('user_register');
18 return $output;
19 }
20
21 function _autoassignrole_user_password() {
22 require_once drupal_get_path('module', 'user') .'/user.pages.inc';
23 $output = drupal_get_form('user_pass');
24 return $output;
25 }
26 function _autoassignrole_user_login() {
27 require_once drupal_get_path('module', 'user') .'/user.pages.inc';
28 $output = user_page();
29 return $output;
30 }

  ViewVC Help
Powered by ViewVC 1.1.2