public static function ProfileHelper::installFields in Helper 7
File
- lib/
ProfileHelper.php, line 35
Class
Code
public static function installFields(array $fields) {
foreach ($fields as $index => $field) {
if (field_info_field($field['field_name'])) {
continue;
}
$fields[$index] = field_create_field($field);
}
return $fields;
}