You are here

function backup_migrate_permission in Backup and Migrate 7.3

Same name and namespace in other branches
  1. 8.2 backup_migrate.module \backup_migrate_permission()
  2. 8.3 backup_migrate.module \backup_migrate_permission()
  3. 7.2 backup_migrate.module \backup_migrate_permission()

Implements hook_permission().

File

./backup_migrate.module, line 367
Backup and restore databases for Drupal.

Code

function backup_migrate_permission() {
  return array(
    'access backup and migrate' => array(
      'title' => t('Access Backup and Migrate'),
      'description' => t('Access the Backup and Migrate admin section.'),
      'restrict access' => TRUE,
    ),
    'perform backup' => array(
      'title' => t('Perform a backup'),
      'description' => t('Back up any of the available databases.'),
      'restrict access' => TRUE,
    ),
    'access backup files' => array(
      'title' => t('Access backup files'),
      'description' => t('Access and download the previously created backup files.'),
      'restrict access' => TRUE,
    ),
    'delete backup files' => array(
      'title' => t('Delete backup files'),
      'description' => t('Delete the previously created backup files.'),
      'restrict access' => TRUE,
    ),
    'restore from backup' => array(
      'title' => t('Restore the site'),
      'description' => t("Restore the site's database from a backup file."),
      'restrict access' => TRUE,
    ),
    'administer backup and migrate' => array(
      'title' => t('Administer Backup and Migrate'),
      'description' => t('Edit Backup and Migrate profiles, schedules and destinations.'),
      'restrict access' => TRUE,
    ),
  );
}