You are here

function party_starterkit_b2b_default_party_hat in Party 8.2

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

Implements hook_default_party_hat().

File

starterkits/party_starterkit_b2b/party_starterkit_b2b.module, line 39
Main file for the Party Kickstart

Code

function party_starterkit_b2b_default_party_hat() {
  $hats = array();

  // Contact hat.
  $hats['contact'] = new PartyHat(array(
    'name' => 'contact',
    'label' => 'Contact',
    'description' => 'An individual contact.',
    'parent' => '',
    'weight' => 0,
    'data' => array(
      'data_sets' => array(
        'profile2_party_contact' => array(
          'has' => TRUE,
        ),
        'profile2_party_notes' => array(
          'has' => TRUE,
        ),
      ),
    ),
  ));

  // Organization hat.
  $hats['org'] = new PartyHat(array(
    'name' => 'org',
    'label' => 'Organization',
    'description' => 'An organization contact.',
    'parent' => '',
    'weight' => 1,
    'data' => array(
      'data_sets' => array(
        'profile2_party_org' => array(
          'has' => TRUE,
        ),
        'profile2_party_notes' => array(
          'has' => TRUE,
        ),
      ),
    ),
  ));
  return $hats;
}