function hook_default_profile2_type in Profile 2 7
Same name and namespace in other branches
- 7.2 profile2.api.php \hook_default_profile2_type()
Define default profile type configurations.
Return value
An array of default profile types, keyed by profile type names.
File
- ./
profile2.api.php, line 232 - This file contains no working PHP code; it exists to provide additional documentation for doxygen as well as to document hooks in the standard Drupal manner.
Code
function hook_default_profile2_type() {
$types['main'] = new ProfileType(array(
'type' => 'main',
'label' => t('Profile'),
'weight' => 0,
'locked' => TRUE,
));
return $types;
}