You are here

function node_noindex_schema in Node Noindex 7

Same name and namespace in other branches
  1. 6 node_noindex.install \node_noindex_schema()

Implements hook_schema().

File

./node_noindex.install, line 24
Install, update and uninstall functions for the node_noindex module.

Code

function node_noindex_schema() {
  $schema['node_noindex'] = array(
    'fields' => array(
      'nid' => array(
        'type' => 'int',
        'not null' => TRUE,
        'disp-width' => '11',
      ),
      'noindex' => array(
        'type' => 'int',
        'not null' => FALSE,
        'disp-width' => '1',
      ),
    ),
    'indexes' => array(
      'noindex' => array(
        'noindex',
      ),
    ),
    'primary key' => array(
      'nid',
    ),
  );
  return $schema;
}