advanced_menu_blocks.install in Advanced Menu 7
File
blocks/advanced_menu_blocks.install
View source
<?php
function advanced_menu_blocks_install() {
db_update('system')
->fields(array(
'weight' => 2,
))
->condition('name', 'advanced_menu_blocks')
->condition('type', 'module')
->execute();
}
function advanced_menu_blocks_schema() {
$schema['advanced_menu_blocks'] = array(
'description' => t('Holds block visibility settings for menus'),
'fields' => array(
'menu_name' => array(
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
'default' => '',
'description' => t('The {menu_custom}.menu_name of the menu.'),
),
),
'primary key' => array(
'menu_name',
),
);
return $schema;
}