You are here

public function OgUiMigrateAddField::__construct in Organic groups 7.2

Construction of a MigrationBase instance.

Parameters

array $arguments:

Overrides MigrationBase::__construct

File

og_ui/includes/migrate/7000/add_field.inc, line 10
Add OG UI related fields to group node-types.

Class

OgUiMigrateAddField
@file Add OG UI related fields to group node-types.

Code

public function __construct() {
  parent::__construct();
  $this->description = t('Add OG UI related fields to group node-types.');
  $this->enabled = !$this
    ->isComplete();
  foreach (node_type_get_names() as $bundle => $value) {

    // Dependent on a dynamic migration.
    $machine_name = 'OgMigrateGroup' . ucfirst($bundle);
    if (MigrationBase::getInstance($machine_name, 'OgMigrateGroup', array(
      'bundle' => $bundle,
    ))) {
      $this->dependencies[] = $machine_name;
    }
  }
}