| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id: ctools_access_ruleset.install,v 1.1.2.2 2010/07/14 01:57:42 merlinofchaos Exp $ 3 4 /** 5 * Schema for customizable access rulesets. 6 */ 7 function ctools_access_ruleset_schema() { 8 return ctools_access_ruleset_schema_1(); 9 } 10 11 function ctools_access_ruleset_schema_1() { 12 $schema = array(); 13 14 $schema['ctools_access_ruleset'] = array( 15 'description' => 'Contains exportable customized access rulesets.', 16 'export' => array( 17 'identifier' => 'ruleset', 18 'bulk export' => TRUE, 19 'primary key' => 'rsid', 20 'api' => array( 21 'owner' => 'ctools', 22 'api' => 'ctools_rulesets', 23 'minimum_version' => 1, 24 'current_version' => 1, 25 ), 26 ), 27 'fields' => array( 28 'rsid' => array( 29 'type' => 'serial', 30 'description' => 'A database primary key to ensure uniqueness', 31 'not null' => TRUE, 32 'no export' => TRUE, 33 ), 34 'name' => array( 35 'type' => 'varchar', 36 'length' => '255', 37 'description' => 'Unique ID for this ruleset. Used to identify it programmatically.', 38 ), 39 'admin_title' => array( 40 'type' => 'varchar', 41 'length' => '255', 42 'description' => 'Administrative title for this ruleset.', 43 ), 44 'admin_description' => array( 45 'type' => 'text', 46 'size' => 'big', 47 'description' => 'Administrative description for this ruleset.', 48 'object default' => '', 49 ), 50 'requiredcontexts' => array( 51 'type' => 'text', 52 'size' => 'big', 53 'description' => 'Any required contexts for this ruleset.', 54 'serialize' => TRUE, 55 'object default' => array(), 56 ), 57 'contexts' => array( 58 'type' => 'text', 59 'size' => 'big', 60 'description' => 'Any embedded contexts for this ruleset.', 61 'serialize' => TRUE, 62 'object default' => array(), 63 ), 64 'relationships' => array( 65 'type' => 'text', 66 'size' => 'big', 67 'description' => 'Any relationships for this ruleset.', 68 'serialize' => TRUE, 69 'object default' => array(), 70 ), 71 'access' => array( 72 'type' => 'text', 73 'size' => 'big', 74 'description' => 'The actual group of access plugins for this ruleset.', 75 'serialize' => TRUE, 76 'object default' => array(), 77 ), 78 ), 79 'primary key' => array('rsid'), 80 ); 81 82 return $schema; 83 } 84 85 /** 86 * Implementation of hook_install(). 87 */ 88 function ctools_access_ruleset_install() { 89 drupal_install_schema('ctools_access_ruleset'); 90 } 91 92 /** 93 * Implementation of hook_uninstall(). 94 */ 95 function ctools_access_ruleset_uninstall() { 96 drupal_uninstall_schema('ctools_access_ruleset'); 97 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |