function schema_menu in Schema 5
Same name and namespace in other branches
- 6 schema.module \schema_menu()
- 7 schema.module \schema_menu()
File
- ./
schema.module, line 446
Code
function schema_menu($may_cache = NULL) {
$items = array();
if (!$may_cache) {
schema_require();
return $items;
}
$items[] = array(
'path' => 'admin/build/schema',
'title' => 'Schema',
'description' => 'Manage the database schema for this system.',
'callback' => 'schema_report',
'access' => user_access('administer schema'),
);
$items[] = array(
'path' => 'admin/build/schema/report',
'title' => 'Compare',
'type' => MENU_DEFAULT_LOCAL_TASK,
'callback' => 'schema_report',
'weight' => -10,
);
$items[] = array(
'path' => 'admin/build/schema/describe',
'title' => 'Describe',
'type' => MENU_LOCAL_TASK,
'callback' => 'schema_describe',
'weight' => -8,
);
$items[] = array(
'path' => 'admin/build/schema/inspect',
'title' => 'Inspect',
'type' => MENU_LOCAL_TASK,
'callback' => 'schema_inspect',
);
/* Not supported in D5 version.
$items[] = array(
'path' => 'admin/build/schema/sql',
'title' => 'SQL',
'type' => MENU_LOCAL_TASK,
'callback' => 'schema_sql',
);
*/
$items[] = array(
'path' => 'admin/build/schema/show',
'title' => 'Show',
'type' => MENU_LOCAL_TASK,
'callback' => 'schema_show',
'weight' => 10,
);
return $items;
}