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

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

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

revision 1.1 by cyberswat, Fri Oct 10 00:49:07 2008 UTC revision 1.2 by cyberswat, Fri Sep 25 16:08:43 2009 UTC
# Line 0  Line 1 
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    }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.3