You are here

function party_starterkit_b2b_install_terms in Party 8.2

Same name and namespace in other branches
  1. 7 starterkits/party_starterkit_b2b/party_starterkit_b2b.install \party_starterkit_b2b_install_terms()

Create some taxonomy terms for the org type vocabulary.

1 call to party_starterkit_b2b_install_terms()
party_starterkit_b2b_install in starterkits/party_starterkit_b2b/party_starterkit_b2b.install
Implements hook_install().

File

starterkits/party_starterkit_b2b/party_starterkit_b2b.install, line 325
Party Starterkit B2B install file

Code

function party_starterkit_b2b_install_terms() {
  $vocabulary = taxonomy_vocabulary_machine_name_load('party_org_types');
  $term = array(
    'vid' => $vocabulary->vid,
    'name' => 'Customer',
    'vocabulary_machine_name' => $vocabulary->machine_name,
  );
  taxonomy_term_save((object) $term);
  $term = array(
    'vid' => $vocabulary->vid,
    'name' => 'Prospect',
    'vocabulary_machine_name' => $vocabulary->machine_name,
  );
  taxonomy_term_save((object) $term);
  $term = array(
    'vid' => $vocabulary->vid,
    'name' => 'Vendor',
    'vocabulary_machine_name' => $vocabulary->machine_name,
  );
  taxonomy_term_save((object) $term);
}