You are here

static function RealisticDummyContentRecipe::GetGenerator in Realistic Dummy Content 7

Parameters

$more: Can contain: kill => TRUE|FALSE

1 call to RealisticDummyContentRecipe::GetGenerator()
RealisticDummyContentRecipe::NewEntities in api/includes/RealisticDummyContentRecipe.inc

File

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

Class

RealisticDummyContentRecipe
@file

Code

static function GetGenerator($type, $bundle, $count, $more) {
  if (in_array($type, array(
    'user',
    'node',
  ))) {
    if (module_exists('devel_generate')) {
      return new RealisticDummyContentDevelGenerateGenerator($type, $bundle, $count, $more);
    }
    else {
      self::$log
        ->Error(t('Please enable devel\'s devel_generate module to generate users or nodes.'));
    }
  }
  else {
    self::$log
      ->Error(t('Entity types other than user and node are not supported for realistic dummy content recipe.'));
  }
}