You are here

function hook_default_profile2_type_alter in Profile 2 7.2

Same name and namespace in other branches
  1. 7 profile2.api.php \hook_default_profile2_type_alter()

Alter default profile type configurations.

Parameters

$defaults: An array of default profile types, keyed by type names.

See also

hook_default_profile2_type()

File

./profile2.api.php, line 250
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_alter(&$defaults) {
  $defaults['main']->label = 'custom label';
}