| 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 |
| 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 |
/** |
/** |
| 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', |
| 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() { |