You are here

function migrate_example_beer_tags in Migrate 6.2

Same name and namespace in other branches
  1. 7.2 migrate_example/beer.install.inc \migrate_example_beer_tags()
1 call to migrate_example_beer_tags()
migrate_example_beer_install in migrate_example/beer.install.inc

File

migrate_example/beer.install.inc, line 346
Set up for the beer (basic) example.

Code

function migrate_example_beer_tags() {

  // Create a vocabulary named "Migrate Example Beer Styles", enabled for the 'migrate_example_beer' content type.
  $description = st('Use tags to group beers on similar topics into categories.');
  $help = st('Enter a comma-separated list of words to describe your content.');
  $vocabulary = array(
    'name' => 'Migrate Example Beer Styles',
    'description' => $description,
    'machine_name' => 'migrate_example_beer_styles',
    'help' => $help,
    'multiple' => 1,
    'required' => 0,
    'hierarchy' => 1,
    'relations' => 0,
    'module' => 'migrate_example',
    'nodes' => array(
      'migrate_example_beer' => 1,
    ),
  );
  taxonomy_vocabulary_save($vocabulary);
}