You are here

function block_machine_name_schema in Block Machine Name 7

Implements hook_schema().

File

./block_machine_name.install, line 10
Install, uninstall and schema functions for the Block Machine Name module.

Code

function block_machine_name_schema() {
  $schema['block_machine_name_boxes'] = array(
    'description' => '',
    'export' => array(
      'key' => 'machine_name',
      'can disable' => FALSE,
    ),
    'fields' => array(
      'delta' => array(
        'description' => 'Delta',
        'type' => 'varchar',
        'length' => 32,
        'not null' => TRUE,
        'default' => '',
      ),
      'machine_name' => array(
        'description' => 'machine_name',
        'type' => 'varchar',
        'length' => 32,
        'not null' => TRUE,
        'default' => '',
      ),
      'module' => array(
        'type' => 'varchar',
        'description' => "Module",
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
    ),
    'primary key' => array(
      'machine_name',
    ),
  );
  return $schema;
}