You are here

function backup_migrate_menu_callback in Backup and Migrate 5.2

Same name and namespace in other branches
  1. 8.2 backup_migrate.module \backup_migrate_menu_callback()
  2. 8.3 backup_migrate.module \backup_migrate_menu_callback()
  3. 6.3 backup_migrate.module \backup_migrate_menu_callback()
  4. 6.2 backup_migrate.module \backup_migrate_menu_callback()
  5. 7.3 backup_migrate.module \backup_migrate_menu_callback()
  6. 7.2 backup_migrate.module \backup_migrate_menu_callback()

A menu callback helper. Handles file includes and interactivity setting.

1 string reference to 'backup_migrate_menu_callback'
backup_migrate_menu in ./backup_migrate.module
Implementation of hook_menu().

File

./backup_migrate.module, line 311
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) {
    require_once './' . drupal_get_path('module', 'backup_migrate') . '/includes/' . $include . '.inc';
  }
  _backup_migrate_interactive($interactive);

  // Get the arguments with the first 3 removed.
  $args = array_slice(func_get_args(), 3);
  return call_user_func_array($function, $args);
}