function backup_migrate_crud_menu in Backup and Migrate 7.3
Same name and namespace in other branches
- 8.2 includes/crud.inc \backup_migrate_crud_menu()
- 8.3 includes/crud.inc \backup_migrate_crud_menu()
- 6.3 includes/crud.inc \backup_migrate_crud_menu()
- 6.2 includes/crud.inc \backup_migrate_crud_menu()
- 7.2 includes/crud.inc \backup_migrate_crud_menu()
Get the menu items handled by the CRUD code.
1 call to backup_migrate_crud_menu()
- backup_migrate_menu in ./
backup_migrate.module - Implements hook_menu().
File
- includes/
crud.inc, line 133 - CRUD functions for backup and migrate types (schedules, profiles etc.).
Code
function backup_migrate_crud_menu() {
$items = array();
foreach (backup_migrate_crud_types() as $type => $info) {
$item = backup_migrate_crud_type_load($type);
$items += (array) $item
->get_menu_items();
foreach (backup_migrate_crud_subtypes($type) as $subtype => $info) {
$subitem = backup_migrate_crud_type_load($type, $subtype);
$items += (array) $subitem
->get_menu_items();
}
}
return $items;
}