public function backup_migrate_schedule::get_list_row in Backup and Migrate 7.3
Same name and namespace in other branches
- 8.2 includes/schedules.inc \backup_migrate_schedule::get_list_row()
- 8.3 includes/schedules.inc \backup_migrate_schedule::get_list_row()
- 6.3 includes/schedules.inc \backup_migrate_schedule::get_list_row()
- 6.2 includes/schedules.inc \backup_migrate_schedule::get_list_row()
- 7.2 includes/schedules.inc \backup_migrate_schedule::get_list_row()
Get a row of data to be used in a list of items of this type.
Overrides backup_migrate_item::get_list_row
File
- includes/
schedules.inc, line 184 - All of the schedule handling code needed for Backup and Migrate.
Class
- backup_migrate_schedule
- A schedule class for crud operations.
Code
public function get_list_row() {
drupal_add_css(drupal_get_path('module', 'backup_migrate') . '/backup_migrate.css');
$row = parent::get_list_row();
if (!$this
->is_enabled()) {
foreach ($row as $key => $field) {
if (!is_array($field)) {
$row[$key] = array(
'data' => $field,
'class' => 'schedule-list-disabled',
);
}
elseif (isset($row[$key]['class'])) {
$row[$key]['class'] .= ' schedule-list-disabled';
}
else {
$row[$key]['class'] = 'schedule-list-disabled';
}
}
}
return $row;
}