You are here

function page_title_schema in Page Title 7

Same name and namespace in other branches
  1. 8.2 page_title.install \page_title_schema()
  2. 6.2 page_title.install \page_title_schema()
  3. 6 page_title.install \page_title_schema()
  4. 7.2 page_title.install \page_title_schema()

File

./page_title.install, line 11

Code

function page_title_schema() {
  $schema['page_title'] = array(
    'fields' => array(
      'type' => array(
        'type' => 'varchar',
        'length' => 15,
        'not null' => TRUE,
        'default' => 'node',
      ),
      'id' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'page_title' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
    ),
    'primary key' => array(
      'type',
      'id',
    ),
  );
  return $schema;
}