You are here

function RealisticDummyContentRecipe::NewEntities in Realistic Dummy Content 7

1 call to RealisticDummyContentRecipe::NewEntities()
realistic_dummy_content_realistic_dummy_content_recipe::_Run_ in realistic_dummy_content/recipe/realistic_dummy_content.recipe.inc

File

api/includes/RealisticDummyContentRecipe.inc, line 57
Define RealisticDummyContentRecipe autoload class.

Class

RealisticDummyContentRecipe
@file

Code

function NewEntities($type, $bundle, $count, $more = array()) {
  self::StartTime(array(
    $type,
    $bundle,
    $count,
  ));
  if ($generator = self::GetGenerator($type, $bundle, $count, $more)) {
    $generator
      ->Generate();
  }
  else {
    self::$log
      ->Error(t('Could not find a generator for @type @bundle.', array(
      '@type' => $type,
      '@bundle' => $bundle,
    )));
  }
  $time = self::StopTime(array(
    $type,
    $bundle,
    $count,
  ));
  self::$log
    ->log(t('@type @bundle: @n created in @time milliseconds', array(
    '@type' => $type,
    '@bundle' => $bundle,
    '@n' => $count,
    '@time' => $time,
  )));
}