You are here

function menu_icons_schema in Menu Icons 6

Implementation of hook_schema()

File

./menu_icons.install, line 14
Install file for menu_icons

Code

function menu_icons_schema() {
  $schema['menu_icons'] = array(
    'description' => t('Table linking image paths with menu items.'),
    'fields' => array(
      'mlid' => array(
        'description' => 'The menu ID',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'path' => array(
        'description' => 'The path to the icon',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
      ),
    ),
    'unique keys' => array(
      'mlid' => array(
        'mlid',
      ),
    ),
  );
  return $schema;
}