You are here

function openid_connect_entity_property_info_alter in OpenID Connect / OAuth client 7

Same name and namespace in other branches
  1. 8 openid_connect.module \openid_connect_entity_property_info_alter()
  2. 2.x openid_connect.module \openid_connect_entity_property_info_alter()

Implements hook_entity_property_info_alter().

Adds the missing timezone property.

File

./openid_connect.module, line 675
A pluggable client implementation for the OpenID Connect protocol.

Code

function openid_connect_entity_property_info_alter(&$info) {
  $properties =& $info['user']['properties'];
  if (!isset($properties['timezone'])) {
    $properties['timezone'] = array(
      'label' => t('Time zone'),
      'description' => t("The user's time zone."),
      'options list' => 'system_time_zones',
      'getter callback' => 'entity_property_verbatim_get',
      'setter callback' => 'entity_property_verbatim_set',
      'schema field' => 'timezone',
    );
  }
}