function entity_metadata_locale_entity_property_info_alter

cis7 locale.info.inc entity_metadata_locale_entity_property_info_alter(&$info)
cle7 locale.info.inc entity_metadata_locale_entity_property_info_alter(&$info)
elmsmedia7 locale.info.inc entity_metadata_locale_entity_property_info_alter(&$info)
icor7 locale.info.inc entity_metadata_locale_entity_property_info_alter(&$info)
meedjum_blog7 locale.info.inc entity_metadata_locale_entity_property_info_alter(&$info)
mooc7 locale.info.inc entity_metadata_locale_entity_property_info_alter(&$info)

Implements hook_entity_property_info_alter() on top of locale module.

See also

entity_entity_property_info_alter()

File

sites/all/modules/ulmus/entity/modules/locale.info.inc, line 13
Provides locale-related properties.

Code

function entity_metadata_locale_entity_property_info_alter(&$info) {

  $info['user']['properties']['language'] = array(
    'label' => t("Language"),
    'description' => t("This account's default language for e-mails, and preferred language for site presentation."),
    'type' => 'token',
    'getter callback' => 'entity_metadata_locale_get_user_language',
    'setter callback' => 'entity_property_verbatim_set',
    'options list' => 'entity_metadata_language_list',
    'schema field' => 'language',
    'setter permission' => 'administer users',
  );

  $info['site']['properties']['current_page']['property info']['language'] = array(
    'label' => t("Interface language"),
    'description' => t("The language code of the current user interface language."),
    'type' => 'token',
    'getter callback' => 'entity_metadata_locale_get_languages',
    'options list' => 'entity_metadata_language_list',
  );
  $info['site']['properties']['current_page']['property info']['language_content'] = array(
    'label' => t("Content language"),
    'description' => t("The language code of the current content language."),
    'type' => 'token',
    'getter callback' => 'entity_metadata_locale_get_languages',
    'options list' => 'entity_metadata_language_list',
  );
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.