| 1 |
<?php |
<?php |
| 2 |
// $Id$ |
// $Id: category_display.install,v 1.9 2008/07/21 17:48:50 jaza Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 27 |
*/ |
*/ |
| 28 |
function category_display_schema() { |
function category_display_schema() { |
| 29 |
$schema['category_display'] = array( |
$schema['category_display'] = array( |
| 30 |
'description' => t('Stores display settings for containers.'), |
'description' => 'Stores display settings for containers.', |
| 31 |
'fields' => array( |
'fields' => array( |
| 32 |
'cid' => array( |
'cid' => array( |
| 33 |
'type' => 'int', |
'type' => 'int', |
| 34 |
'unsigned' => TRUE, |
'unsigned' => TRUE, |
| 35 |
'not null' => TRUE, |
'not null' => TRUE, |
| 36 |
'default' => 0, |
'default' => 0, |
| 37 |
'description' => t('Primary Key: The {category}.cid of the container.'), |
'description' => 'Primary Key: The {category}.cid of the container.', |
| 38 |
), |
), |
| 39 |
'navlinks' => array( |
'navlinks' => array( |
| 40 |
'type' => 'int', |
'type' => 'int', |
| 42 |
'unsigned' => TRUE, |
'unsigned' => TRUE, |
| 43 |
'not null' => TRUE, |
'not null' => TRUE, |
| 44 |
'default' => 0, |
'default' => 0, |
| 45 |
|
'description' => 'Whether or not navigation links (prev/next/up) should be shown on category pages within this container.', |
| 46 |
), |
), |
| 47 |
'toc_for_cats' => array( |
'toc_for_cats' => array( |
| 48 |
'type' => 'int', |
'type' => 'int', |
| 50 |
'unsigned' => TRUE, |
'unsigned' => TRUE, |
| 51 |
'not null' => TRUE, |
'not null' => TRUE, |
| 52 |
'default' => 0, |
'default' => 0, |
| 53 |
|
'description' => 'Whether or not the Table-of-contents tree should be shown on category pages within this container.', |
| 54 |
), |
), |
| 55 |
'toc_depth' => array( |
'toc_depth' => array( |
| 56 |
'type' => 'int', |
'type' => 'int', |
| 57 |
'size' => 'small', |
'size' => 'small', |
| 58 |
'not null' => TRUE, |
'not null' => TRUE, |
| 59 |
'default' => 0, |
'default' => 0, |
| 60 |
|
'description' => 'Depth of the Table-of-contents tree (-1 for infinite).', |
| 61 |
), |
), |
| 62 |
'toc_nodecount' => array( |
'toc_nodecount' => array( |
| 63 |
'type' => 'int', |
'type' => 'int', |
| 65 |
'unsigned' => TRUE, |
'unsigned' => TRUE, |
| 66 |
'not null' => TRUE, |
'not null' => TRUE, |
| 67 |
'default' => 0, |
'default' => 0, |
| 68 |
|
'description' => 'Whether or not the Table-of-contents tree should show counts of assigned nodes.', |
| 69 |
), |
), |
| 70 |
'nodelinks' => array( |
'nodelinks' => array( |
| 71 |
'type' => 'int', |
'type' => 'int', |
| 73 |
'unsigned' => TRUE, |
'unsigned' => TRUE, |
| 74 |
'not null' => TRUE, |
'not null' => TRUE, |
| 75 |
'default' => 0, |
'default' => 0, |
| 76 |
|
'description' => 'Whether or not to show links to assigned categories on viewed nodes.', |
| 77 |
), |
), |
| 78 |
'show_listing' => array( |
'show_listing' => array( |
| 79 |
'type' => 'int', |
'type' => 'int', |
| 81 |
'unsigned' => TRUE, |
'unsigned' => TRUE, |
| 82 |
'not null' => TRUE, |
'not null' => TRUE, |
| 83 |
'default' => 0, |
'default' => 0, |
| 84 |
|
'description' => 'Whether or not to show lists of assigned content on category pages within this container.', |
| 85 |
), |
), |
| 86 |
'emptymsg' => array( |
'emptymsg' => array( |
| 87 |
'type' => 'int', |
'type' => 'int', |
| 89 |
'unsigned' => TRUE, |
'unsigned' => TRUE, |
| 90 |
'not null' => TRUE, |
'not null' => TRUE, |
| 91 |
'default' => 0, |
'default' => 0, |
| 92 |
|
'description' => 'Whether or not to show a message, if no content is assigned to a category.', |
| 93 |
), |
), |
| 94 |
), |
), |
| 95 |
'primary key' => array('cid'), |
'primary key' => array('cid'), |