| 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 |
}
|