function entity_property_verbatim_set

cis7 entity.property.inc entity_property_verbatim_set(&$data, $name, $value, $langcode, $type, $info)
cle7 entity.property.inc entity_property_verbatim_set(&$data, $name, $value, $langcode, $type, $info)
elmsmedia7 entity.property.inc entity_property_verbatim_set(&$data, $name, $value, $langcode, $type, $info)
icor7 entity.property.inc entity_property_verbatim_set(&$data, $name, $value, $langcode, $type, $info)
meedjum_blog7 entity.property.inc entity_property_verbatim_set(&$data, $name, $value, $langcode, $type, $info)
mooc7 entity.property.inc entity_property_verbatim_set(&$data, $name, $value, $langcode, $type, $info)

Sets the property to the given value. May be used as 'setter callback'.

1 call to entity_property_verbatim_set()
entity_metadata_verbatim_set in sites/all/modules/ulmus/entity/includes/entity.property.inc
Deprecated. Do not make use of this function, instead use the new one.
15 string references to 'entity_property_verbatim_set'
entity_metadata_comment_entity_property_info in sites/all/modules/ulmus/entity/modules/comment.info.inc
Implements hook_entity_property_info() on top of comment module.
entity_metadata_comment_entity_property_info_alter in sites/all/modules/ulmus/entity/modules/comment.info.inc
Implements hook_entity_property_info_alter() on top of comment module.
entity_metadata_locale_entity_property_info_alter in sites/all/modules/ulmus/entity/modules/locale.info.inc
Implements hook_entity_property_info_alter() on top of locale module.
entity_metadata_node_entity_property_info in sites/all/modules/ulmus/entity/modules/node.info.inc
Implements hook_entity_property_info() on top of node module.
entity_metadata_taxonomy_entity_property_info in sites/all/modules/ulmus/entity/modules/taxonomy.info.inc
Implements hook_entity_property_info() on top of taxonomy module.

... See full list

File

sites/all/modules/ulmus/entity/includes/entity.property.inc, line 410
Provides API functions around hook_entity_property_info(). Also see entity.info.inc, which cares for providing entity property info for all core entity types.

Code

function entity_property_verbatim_set(&$data, $name, $value, $langcode, $type, $info) {
  $name = isset($info['schema field']) ? $info['schema field'] : $name;
  if (is_array($data) || (is_object($data) && $data instanceof ArrayAccess)) {
    $data[$name] = $value;
  }
  elseif (is_object($data)) {
    $data->$name = $value;
  }
}
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.