You are here

function backup_migrate_location::get_list_row in Backup and Migrate 8.3

Same name and namespace in other branches
  1. 6.3 includes/locations.inc \backup_migrate_location::get_list_row()
  2. 7.3 includes/locations.inc \backup_migrate_location::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

1 method overrides backup_migrate_location::get_list_row()
backup_migrate_destination_browser::get_list_row in includes/destinations.browser.inc
Get a row of data to be used in a list of items of this type.

File

includes/locations.inc, line 234

Class

backup_migrate_location
A base class for creating locations.

Code

function get_list_row() {
  $out = parent::get_list_row();

  // Supress locations with no actions as there's no value in showing them (and they may confuse new users).
  if (empty($out['actions'])) {
    return NULL;
  }
  return $out;
}