function callback_entity_info_language

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 system.api.php callback_entity_info_language($entity, $entity_type)
cle7 system.api.php callback_entity_info_language($entity, $entity_type)
elmsmedia7 system.api.php callback_entity_info_language($entity, $entity_type)
icor7 system.api.php callback_entity_info_language($entity, $entity_type)
meedjum_blog7 system.api.php callback_entity_info_language($entity, $entity_type)
mooc7 system.api.php callback_entity_info_language($entity, $entity_type)

Return the language code of the entity.

Callback for hook_entity_info().

The language callback is meant to be used primarily for temporary alterations of the property value.

Parameters

$entity: The entity for which to return the language.

$entity_type: The entity type; e.g., 'node' or 'user'.

Return value

The language code for the language of the entity.

See also

entity_language()

Related topics

File

modules/system/system.api.php, line 4782
Hooks provided by Drupal core and the System module.

Code

function callback_entity_info_language($entity, $entity_type) {
  return $entity->language;
}
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.