diff options
author | Jennifer Hodgdon <yahgrp@poplarware.com> | 2013-04-10 14:44:19 -0700 |
---|---|---|
committer | Jennifer Hodgdon <yahgrp@poplarware.com> | 2013-04-10 14:44:19 -0700 |
commit | 4462c53d656414e5611a4efdab087e1d29b7ed8e (patch) | |
tree | 78af922ffdb7cbfdf24934b36f378fd353d15fcd | |
parent | f4f388f42d4f614dbff48e1a8d8fe95216478e20 (diff) | |
download | brdo-4462c53d656414e5611a4efdab087e1d29b7ed8e.tar.gz brdo-4462c53d656414e5611a4efdab087e1d29b7ed8e.tar.bz2 |
Issue #1614108 by dcam, bartmcpherson, Xano: Add documentation to hook_field_extra_fields
-rw-r--r-- | modules/field/field.api.php | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/modules/field/field.api.php b/modules/field/field.api.php index 822f537bc..f6b8257ac 100644 --- a/modules/field/field.api.php +++ b/modules/field/field.api.php @@ -23,14 +23,22 @@ * @see hook_field_extra_fields_alter() * * @return - * A nested array of 'pseudo-field' components. Each list is nested within - * the following keys: entity type, bundle name, context (either 'form' or + * A nested array of 'pseudo-field' elements. Each list is nested within the + * following keys: entity type, bundle name, context (either 'form' or * 'display'). The keys are the name of the elements as appearing in the * renderable array (either the entity form or the displayed entity). The * value is an associative array: - * - label: The human readable name of the component. - * - description: A short description of the component contents. + * - label: The human readable name of the element. + * - description: A short description of the element contents. * - weight: The default weight of the element. + * - visible: The default visibility of the element. Only for 'display' + * context. + * - edit: (optional) String containing markup (normally a link) used as the + * element's 'edit' operation in the administration interface. Only for + * 'form' context. + * - delete: (optional) String containing markup (normally a link) used as the + * element's 'delete' operation in the administration interface. Only for + * 'form' context. */ function hook_field_extra_fields() { $extra['node']['poll'] = array( |