From 5628bc2c9ba82570c63d491e1ee8ae7de6494508 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 18 May 2010 18:30:49 +0000 Subject: - Patch #680416 by Amitaibu, yched: allow defining fields that can not be added via UI. --- modules/field/field.api.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/field/field.api.php') diff --git a/modules/field/field.api.php b/modules/field/field.api.php index e37254a16..bc4e26690 100644 --- a/modules/field/field.api.php +++ b/modules/field/field.api.php @@ -149,6 +149,10 @@ function hook_field_extra_fields_alter(&$info) { * instance definition. This formatter must be available whenever the field * type is available (i.e. provided by the field type module, or by a module * the field type module depends on). + * - no_ui: (optional) A boolean specifying that users should not be allowed + * to create fields and instances of this field type through the UI. Such + * fields can only be created programmatically with field_create_field() + * and field_create_instance(). Defaults to FALSE. * * @see hook_field_info_alter() */ -- cgit v1.2.3