You are here

function backup_migrate_crud_menu in Backup and Migrate 8.3

Same name and namespace in other branches
  1. 8.2 includes/crud.inc \backup_migrate_crud_menu()
  2. 6.3 includes/crud.inc \backup_migrate_crud_menu()
  3. 6.2 includes/crud.inc \backup_migrate_crud_menu()
  4. 7.3 includes/crud.inc \backup_migrate_crud_menu()
  5. 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 131
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;
}