You are here

function node_class_schema in Node Class 7

Same name and namespace in other branches
  1. 6.2 node_class.install \node_class_schema()
  2. 6 node_class.install \node_class_schema()

Implements hook_schema().

File

./node_class.install, line 11
Install, update and uninstall functions for the block_class module.

Code

function node_class_schema() {
  $schema['node_class'] = array(
    'fields' => array(
      'nid' => array(
        'type' => 'varchar',
        'length' => '32',
        'not null' => TRUE,
      ),
      'css_class' => array(
        'type' => 'varchar',
        'length' => '255',
        'not null' => TRUE,
        'default' => '',
        'description' => 'String containing the classes for the block.',
      ),
    ),
    'primary key' => array(
      'nid',
    ),
  );
  return $schema;
}