You are here

function backup_migrate_schedule::is_enabled in Backup and Migrate 6.2

Same name and namespace in other branches
  1. 8.2 includes/schedules.inc \backup_migrate_schedule::is_enabled()
  2. 8.3 includes/schedules.inc \backup_migrate_schedule::is_enabled()
  3. 6.3 includes/schedules.inc \backup_migrate_schedule::is_enabled()
  4. 7.3 includes/schedules.inc \backup_migrate_schedule::is_enabled()
  5. 7.2 includes/schedules.inc \backup_migrate_schedule::is_enabled()

Is the schedule enabled and valid.

2 calls to backup_migrate_schedule::is_enabled()
backup_migrate_schedule::cron in includes/schedules.inc
Perform the cron action. Run the backup if enough time has elapsed.
backup_migrate_schedule::get_list_row in includes/schedules.inc
Get a row of data to be used in a list of items of this type.

File

includes/schedules.inc, line 110

Class

backup_migrate_schedule
A schedule class for crud operations.

Code

function is_enabled() {
  $destination = $this
    ->get_destination();
  $profile = $this
    ->get_profile();
  return !empty($this->enabled) && !empty($destination) && !empty($profile);
}