function backup_migrate_menu_callback in Backup and Migrate 7.3
Same name and namespace in other branches
- 8.2 backup_migrate.module \backup_migrate_menu_callback()
- 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.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 - Implements hook_menu().
File
- ./
backup_migrate.module, line 522 - Backup and restore databases for Drupal.
Code
function backup_migrate_menu_callback($include, $function, $interactive = TRUE) {
if ($include) {
require_once dirname(__FILE__) . '/includes/' . $include . '.inc';
}
// 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);
}