You are here

public function MigrateDestinationVariable::rollback in Migrate 7.2

Delete a single variable.

Parameters

$id: Array of fields representing the key (in this case, just variable name).

File

plugins/destinations/variable.inc, line 148
Support for variable destinations.

Class

MigrateDestinationVariable
Destination class implementing migration into {variable}.

Code

public function rollback(array $id) {
  $name = reset($id);
  migrate_instrument_start('variable_delete');
  $this
    ->prepareRollback($name);
  variable_del($name);
  $this
    ->completeRollback($name);
  migrate_instrument_stop('variable_delete');
}