menu_schema
modules/menu/menu.install, строка 28
- Версии
- 6
menu_schema()
Реализация hook_schema()
.
Код
<?php
function menu_schema() {
$schema['menu_custom'] = array(
'description' => 'Holds definitions for top-level custom menus (for example, Primary Links).',
'fields' => array(
'menu_name' => array(
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
'default' => '',
'description' => 'Primary Key: Unique key for menu. This is used as a block delta so length is 32.',
),
'title' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => 'Menu title; displayed at top of block.',
),
'description' => array(
'type' => 'text',
'not null' => FALSE,
'description' => 'Menu description.',
),
),
'primary key' => array('menu_name'),
);
return $schema;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии