You are here

function nodehierarchy_views_schema in Node Hierarchy 6

Same name and namespace in other branches
  1. 6.3 nodehierarchy_views/nodehierarchy_views.install \nodehierarchy_views_schema()
  2. 6.2 nodehierarchy_views/nodehierarchy_views.install \nodehierarchy_views_schema()
  3. 7.4 nodehierarchy_views/nodehierarchy_views.install \nodehierarchy_views_schema()
  4. 7.2 nodehierarchy_views/nodehierarchy_views.install \nodehierarchy_views_schema()

Implementation of hook_schema().

File

nodehierarchy_views/nodehierarchy_views.install, line 15

Code

function nodehierarchy_views_schema() {
  $schema['nodehierarchy_views'] = array(
    'fields' => array(
      'nid' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
        'description' => t('The {node}.nid whose children are being embedded.'),
      ),
      'nh_children_view' => array(
        'type' => 'varchar',
        'length' => '32',
        'default' => '',
        'not null' => TRUE,
        'description' => t('The {views_view}.name of the embedded view.'),
      ),
    ),
    'primary key' => array(
      'nid',
    ),
  );
  return $schema;
}