-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathworkbench_admin_per_menu.install
More file actions
41 lines (37 loc) · 1.02 KB
/
workbench_admin_per_menu.install
File metadata and controls
41 lines (37 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
* I am the install script for the workbench_admin_per_menu module
* I install a lookup table for menus to the taxonomy the Workbench module is
* using for access control.
*/
/**
* Implementation of hook_schema().
*/
function workbench_admin_per_menu_schema(){
$schema['workbench_admin_per_menu_menu_workbench_lookup'] = array(
'description' => t('The lookup table for menus to configured workbench access taxonomy.'),
'fields' => array(
'menu_name' => array(
'description' => 'I am the name of the Drupal menu.',
'type' => 'varchar',
'length' => 32,
'not null' => TRUE
),
'IDTaxonomyAccessNode' => array(
'description' => 'I am the ID of a Taxonomy Node which workbench is using to control access.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE
)
),
'primary key' => array('menu_name'),
);
return $schema;
}
/**
* Implementation of hook_install().
*/
/*
function workbench_admin_per_menu_install() {
}
*/