function backup_migrate_destination::get_menu_items in Backup and Migrate 8.3
Same name and namespace in other branches
- 8.2 includes/destinations.inc \backup_migrate_destination::get_menu_items()
- 6.3 includes/destinations.inc \backup_migrate_destination::get_menu_items()
- 6.2 includes/destinations.inc \backup_migrate_destination::get_menu_items()
- 7.3 includes/destinations.inc \backup_migrate_destination::get_menu_items()
- 7.2 includes/destinations.inc \backup_migrate_destination::get_menu_items()
Add the menu items specific to the destination type.
Overrides backup_migrate_item::get_menu_items
1 method overrides backup_migrate_destination::get_menu_items()
- backup_migrate_destination_nodesquirrel::get_menu_items in includes/
destinations.nodesquirrel.inc - Get the menu items for manipulating this type.
File
- includes/
destinations.inc, line 1153
Class
- backup_migrate_destination
- A base class for creating destinations.
Code
function get_menu_items() {
$items = parent::get_menu_items();
$path = $this
->get_settings_path();
$items[$path . '/list/files'] = array(
'title' => 'Destination Files',
'page callback' => 'backup_migrate_menu_callback',
'page arguments' => array(
'destinations',
'backup_migrate_ui_destination_display_files',
TRUE,
),
'access arguments' => array(
'access backup files',
),
'type' => MENU_LOCAL_TASK,
);
$items[$path . '/list/deletefile'] = array(
'title' => 'Delete File',
'description' => 'Delete a backup file',
'page callback' => 'backup_migrate_menu_callback',
'page arguments' => array(
'destinations',
'backup_migrate_ui_destination_delete_file',
TRUE,
),
'access arguments' => array(
'delete backup files',
),
'type' => MENU_LOCAL_TASK,
);
$items[$path . '/list/restorefile'] = array(
'title' => 'Restore from backup',
'description' => 'Restore database from a backup file on the server',
'page callback' => 'backup_migrate_menu_callback',
'page arguments' => array(
'destinations',
'backup_migrate_ui_destination_restore_file',
TRUE,
),
'access arguments' => array(
'restore from backup',
),
'type' => MENU_LOCAL_TASK,
);
$items[$path . '/downloadfile'] = array(
'title' => 'Download File',
'description' => 'Download a backup file',
'page callback' => 'backup_migrate_menu_callback',
'page arguments' => array(
'destinations',
'backup_migrate_ui_destination_download_file',
TRUE,
),
'access arguments' => array(
'access backup files',
),
'type' => MENU_CALLBACK,
);
return $items;
}