summaryrefslogtreecommitdiff
path: root/modules/field/field.api.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/field/field.api.php')
-rw-r--r--modules/field/field.api.php15
1 files changed, 7 insertions, 8 deletions
diff --git a/modules/field/field.api.php b/modules/field/field.api.php
index bc31b8ac3..9c52d24ef 100644
--- a/modules/field/field.api.php
+++ b/modules/field/field.api.php
@@ -1,5 +1,4 @@
<?php
-// $Id$
/**
* @ingroup field_fieldable_type
@@ -16,7 +15,7 @@
*
* Fieldable entities or modules that want to have their components supported
* should expose them using this hook. The user-defined settings (weight,
- * visibility) are automatically applied on rendered forms and displayed
+ * visible) are automatically applied on rendered forms and displayed
* entities in a #pre_render callback added by field_attach_form() and
* field_attach_view().
*
@@ -758,7 +757,7 @@ function hook_field_widget_info_alter(&$info) {
/**
* Return the form for a single field widget.
*
- * Field widget form elements should be based on the passed in $element, which
+ * Field widget form elements should be based on the passed-in $element, which
* contains the base form element properties derived from the field
* configuration.
*
@@ -1271,7 +1270,7 @@ function hook_field_attach_delete_revision($entity_type, $entity) {
*/
function hook_field_attach_purge($entity_type, $entity, $field, $instance) {
// find the corresponding data in mymodule and purge it
- if($entity_type == 'node' && $field->field_name == 'my_field_name') {
+ if ($entity_type == 'node' && $field->field_name == 'my_field_name') {
mymodule_remove_mydata($entity->nid);
}
}
@@ -1319,7 +1318,7 @@ function hook_field_attach_view_alter(&$output, $context) {
*
* This hook is invoked after the field module has performed the operation.
*
- * @param &$entity
+ * @param $entity
* The entity being prepared for translation.
* @param $context
* An associative array containing:
@@ -1362,7 +1361,7 @@ function hook_field_language_alter(&$display_language, $context) {
* This hook is invoked from field_available_languages() to allow modules to
* alter the array of available languages for the given field.
*
- * @param &$languages
+ * @param $languages
* A reference to an array of language codes to be made available.
* @param $context
* An associative array containing:
@@ -2205,7 +2204,7 @@ function hook_field_display_ENTITY_TYPE_alter(&$display, $context) {
*/
function hook_field_extra_fields_display_alter(&$displays, $context) {
if ($context['entity_type'] == 'taxonomy_term' && $context['view_mode'] == 'full') {
- $displays['description']['visibility'] = FALSE;
+ $displays['description']['visible'] = FALSE;
}
}
@@ -2416,7 +2415,7 @@ function hook_field_delete_instance($instance) {
* @param $field
* The field record just read from the database.
*/
-function hook_field_read_field(&$field) {
+function hook_field_read_field($field) {
// @todo Needs function body.
}