You are here

public function BiblioMigrateTypes::prepare in Bibliography Module 7.3

File

includes/migrate/7300/biblio_types.migrate.inc, line 35

Class

BiblioMigrateTypes
@file

Code

public function prepare($entity, $row) {

  // Create the type machine name.
  $entity->type = drupal_strtolower($entity->type);
  $entity->type = str_replace(array(
    '-',
    ' ',
  ), '_', $entity->type);

  // Make sure there's a description.
  if (!$entity->description) {
    $entity->description = $entity->name;
  }
}