field_test_entity_info_translatable

Versions
7
field_test_entity_info_translatable($obj_type = NULL, $translatable = NULL)

Helper function to enable entity translations.

Code

modules/field/tests/field_test.module, line 103

<?php
function field_test_entity_info_translatable($obj_type = NULL, $translatable = NULL) {
  $stored_value = &drupal_static(__FUNCTION__, array());
  if (isset($obj_type)) {
    $stored_value[$obj_type] = $translatable;
    entity_info_cache_clear();
  }
  return $stored_value;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.