function party_starterkit_b2b_default_profile2_type in Party 8.2
Same name and namespace in other branches
- 7 starterkits/party_starterkit_b2b/party_starterkit_b2b.module \party_starterkit_b2b_default_profile2_type()
Implements hook_default_profile2_type();
File
- starterkits/
party_starterkit_b2b/ party_starterkit_b2b.module, line 9 - Main file for the Party Kickstart
Code
function party_starterkit_b2b_default_profile2_type() {
$type = array();
// Organisation type
$types['party_org'] = new ProfileType(array(
'type' => 'party_org',
'label' => 'Organisation',
'weight' => 0,
));
// Individual Contact type
$types['party_contact'] = new ProfileType(array(
'type' => 'party_contact',
'label' => 'Contact',
'weight' => 1,
));
// Notes Profile
$types['party_notes'] = new ProfileType(array(
'type' => 'party_notes',
'label' => 'Notes',
'weight' => 2,
));
return $types;
}