You are here

function backup_migrate_profile::get_list_row in Backup and Migrate 7.2

Same name and namespace in other branches
  1. 8.2 includes/profiles.inc \backup_migrate_profile::get_list_row()
  2. 6.2 includes/profiles.inc \backup_migrate_profile::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/profiles.inc, line 233

Class

backup_migrate_profile
A profile class for crud operations.

Code

function get_list_row() {
  $row = parent::get_list_row();
  if (empty($this->enabled)) {
    foreach ($row as $key => $field) {
      $row[$key] = array(
        'data' => $field,
        'class' => 'profile-list-disabled',
      );
    }
  }
  return $row;
}