You are here

function menus_attribute_schema in Menus attribute 8

This will create a table -> menus_attribute with the following fields.

File

./menus_attribute.install, line 11
Provides functions for database.

Code

function menus_attribute_schema() {
  $schema['menus_attribute'] = [
    'fields' => [
      'id' => [
        'type' => 'serial',
        'not null' => TRUE,
      ],
      'plugin_id' => [
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
      ],
      'link_title' => [
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
      ],
      'link_id' => [
        'type' => 'varchar',
        'length' => 128,
      ],
      'link_name' => [
        'type' => 'varchar',
        'length' => 128,
      ],
      'link_rel' => [
        'type' => 'varchar',
        'length' => 128,
      ],
      'link_classes' => [
        'type' => 'varchar',
        'length' => 128,
      ],
      'link_style' => [
        'type' => 'varchar',
        'length' => 128,
      ],
      'link_target' => [
        'type' => 'varchar',
        'length' => 10,
      ],
      'link_accesskey' => [
        'type' => 'varchar',
        'length' => 1,
      ],
      'item_id' => [
        'type' => 'varchar',
        'length' => 128,
      ],
      'item_classes' => [
        'type' => 'varchar',
        'length' => 128,
      ],
      'item_style' => [
        'type' => 'varchar',
        'length' => 128,
      ],
    ],
    'primary key' => [
      'id',
    ],
  ];
  return $schema;
}