/[drupal]/contributions/modules/autoassignrole/autoassignrole.install
ViewVC logotype

Diff of /contributions/modules/autoassignrole/autoassignrole.install

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

revision 1.7.2.1 by cyberswat, Wed Sep 3 23:12:30 2008 UTC revision 1.7.2.2 by cyberswat, Mon Sep 29 16:24:13 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: autoassignrole.install,v 1.11 2008/09/03 21:29:02 cyberswat Exp $  // $Id: autoassignrole.install,v 1.7.2.1 2008/09/03 23:12:30 cyberswat Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 48  function autoassignrole_install() { Line 48  function autoassignrole_install() {
48    db_query("INSERT into {autoassignrole} (arid,value) VALUES ('%s', '%s')",    db_query("INSERT into {autoassignrole} (arid,value) VALUES ('%s', '%s')",
49      'user_selection', 2      'user_selection', 2
50    );    );
51      db_query("INSERT into {autoassignrole} (arid,value) VALUES ('%s', '%s')",
52        'page_active', 0
53      );
54  }  }
55    
56  /**  /**
# Line 62  function autoassignrole_uninstall() { Line 65  function autoassignrole_uninstall() {
65   */   */
66  function autoassignrole_schema() {  function autoassignrole_schema() {
67    $schema['autoassignrole'] = array(    $schema['autoassignrole'] = array(
68      'description' => t('Stores challenge-specific information for challenge      'description' => t('Stores autoassignrole variables.'),
       nodes.'),  
69      'fields' => array(      'fields' => array(
70        'arid'     => array(        'arid'     => array(
71          'type' => 'varchar',          'type' => 'varchar',
# Line 81  function autoassignrole_schema() { Line 83  function autoassignrole_schema() {
83      ),      ),
84      'primary key' => array('arid'),      'primary key' => array('arid'),
85    );    );
86      $schema['autoassignrole_page'] = array(
87        'description' => t('Stores autoassignrole page information.'),
88        'fields' => array(
89          'rid'     => array(
90            'type' => 'int',
91            'not null' => TRUE,
92            'description' => t('The rid for this page.'),
93          ),
94          'display' => array(
95            'type' => 'text',
96            'not null' => TRUE,
97            'default' => '',
98            'description' => t('How to display the navigation to this page.'),
99          ),
100          'path' => array(
101            'type' => 'varchar',
102            'length' => 255,
103            'not null' => TRUE,
104            'description' => t('The path for this page.'),
105          ),
106          'title' => array(
107            'type' => 'text',
108            'not null' => TRUE,
109            'default' => '',
110            'description' => t('The title for this page.'),
111          ),
112          'description' => array(
113            'type' => 'text',
114            'size' => 'big',
115            'not null' => FALSE,
116            'description' => t('The description for this page.'),
117          ),
118        ),
119        'primary key' => array('rid'),
120      );
121    return $schema;    return $schema;
122  }  }
123  function autoassignrole_update_6000() {  function autoassignrole_update_6000() {

Legend:
Removed from v.1.7.2.1  
changed lines
  Added in v.1.7.2.2

  ViewVC Help
Powered by ViewVC 1.1.3