diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-05-18 18:30:49 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-05-18 18:30:49 +0000 |
commit | 5628bc2c9ba82570c63d491e1ee8ae7de6494508 (patch) | |
tree | 398d9c8c0ab80a26851ca43ab4aa23a674ea7fb8 /modules/field/field.api.php | |
parent | 09b0283675f938c89a2c541b6649deb10e7c5040 (diff) | |
download | brdo-5628bc2c9ba82570c63d491e1ee8ae7de6494508.tar.gz brdo-5628bc2c9ba82570c63d491e1ee8ae7de6494508.tar.bz2 |
- Patch #680416 by Amitaibu, yched: allow defining fields that can not be added via UI.
Diffstat (limited to 'modules/field/field.api.php')
-rw-r--r-- | modules/field/field.api.php | 4 |
1 files changed, 4 insertions, 0 deletions
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() */ |