public function EntityformType::clear_text_props in Entityform 7.2
Clears values default text values so global text values can be used.
File
- ./
entityform.module, line 1238 - Module for the Entityform Entity - a starting point to create your own Entity and associated administration interface
Class
- EntityformType
- The class used for entityform type entities
Code
public function clear_text_props() {
$clear_keys = array_keys(entity_get_controller('entityform_type')
->get_default_text_values());
foreach ($clear_keys as $key) {
$this->data[$key] = '';
}
}