You are here

function tb_megamenu_schema in The Better Mega Menu 7

Implementation of hook_schema().

File

./tb_megamenu.install, line 6

Code

function tb_megamenu_schema() {
  $schema = array();
  $schema['tb_megamenus'] = array(
    'fields' => array(
      'menu_name' => array(
        'type' => 'varchar',
        'length' => '255',
        'not null' => TRUE,
      ),
      'block_config' => array(
        'type' => 'text',
        'size' => 'medium',
        'not null' => FALSE,
      ),
      'menu_config' => array(
        'type' => 'text',
        'size' => 'medium',
        'not null' => FALSE,
      ),
      'language' => array(
        'type' => 'varchar',
        'length' => '12',
        'not null' => TRUE,
        'default' => '',
      ),
    ),
    'primary key' => array(
      'menu_name',
      'language',
    ),
  );
  return $schema;
}