You are here

function page_title_schema in Page Title 6.2

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

Implementation of hook_schema().

File

./page_title.install, line 20
The install file for Page Title allows the module to install (and uninstall) itself. This is required as this module uses its own table.

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;
}