function _wsfields_storage_field_name_exists in Web Service Data 7
Callback for checking that the field name doesn't already exist
1 string reference to '_wsfields_storage_field_name_exists'
- wsfields_storage_settings_form in modules/
wsfields_storage/ wsfields_storage.admin.inc - Wsfields settings form
File
- modules/
wsfields_storage/ wsfields_storage.admin.inc, line 158 - Defines the wsfields storage forms
Code
function _wsfields_storage_field_name_exists($value) {
return (bool) field_read_fields(array(
'field_name' => $value,
), array(
'include_inactive' => TRUE,
));
}