function backup_migrate_menu_callback in Backup and Migrate 8.2
Same name and namespace in other branches
- 8.3 backup_migrate.module \backup_migrate_menu_callback()
- 5.2 backup_migrate.module \backup_migrate_menu_callback()
- 6.3 backup_migrate.module \backup_migrate_menu_callback()
- 6.2 backup_migrate.module \backup_migrate_menu_callback()
- 7.3 backup_migrate.module \backup_migrate_menu_callback()
- 7.2 backup_migrate.module \backup_migrate_menu_callback()
A menu callback helper. Handles file includes and interactivity setting.
3 string references to 'backup_migrate_menu_callback'
- backup_migrate_destination::get_menu_items in includes/
destinations.inc - Add the menu items specific to the destination type.
- backup_migrate_item::get_menu_items in includes/
crud.inc - Get the menu items for manipulating this type.
- backup_migrate_menu in ./
backup_migrate.module - Implementation of hook_menu().
File
- ./
backup_migrate.module, line 230 - Create (manually or scheduled) and restore backups of your Drupal MySQL database with an option to exclude table data (e.g. cache_*)
Code
function backup_migrate_menu_callback($include, $function, $interactive = TRUE) {
if ($include) {
backup_migrate_include($include);
}
// Set the message handler based on interactivity setting.
_backup_migrate_message_callback($interactive ? '_backup_migrate_message_browser' : '_backup_migrate_message_log');
// Get the arguments with the first 3 removed.
$args = array_slice(func_get_args(), 3);
return call_user_func_array($function, $args);
}