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.php30
1 files changed, 11 insertions, 19 deletions
diff --git a/modules/field/field.api.php b/modules/field/field.api.php
index 74eae62ab..329cf16d1 100644
--- a/modules/field/field.api.php
+++ b/modules/field/field.api.php
@@ -1,7 +1,7 @@
<?php
/**
- * @ingroup field_fieldable_type
+ * @ingroup hooks
* @{
*/
@@ -74,17 +74,13 @@ function hook_field_extra_fields() {
function hook_field_extra_fields_alter(&$info) {
// Force node title to always be at the top of the list by default.
foreach (node_type_get_types() as $bundle) {
- if (isset($info['node'][$bundle->type]['title'])) {
- $info['node'][$bundle->type]['title']['weight'] = -20;
+ if (isset($info['node'][$bundle->type]['form']['title'])) {
+ $info['node'][$bundle->type]['form']['title']['weight'] = -20;
}
}
}
/**
- * @} End of "ingroup field_fieldable_type"
- */
-
-/**
* @defgroup field_types Field Types API
* @{
* Define field types, widget types, display formatter types, storage types.
@@ -119,6 +115,9 @@ function hook_field_extra_fields_alter(&$info) {
*
* A third kind of pluggable handlers, storage backends, is defined by the
* @link field_storage Field Storage API @endlink.
+ *
+ * See @link field Field API @endlink for information about the other parts of
+ * the Field API.
*/
/**
@@ -706,6 +705,7 @@ function hook_field_is_empty($item, $field) {
* @see hook_field_widget_form_alter()
* @see hook_field_widget_WIDGET_TYPE_form_alter()
* @see hook_field_widget_error()
+ * @see hook_field_widget_settings_form()
*/
function hook_field_widget_info() {
return array(
@@ -1505,10 +1505,6 @@ function hook_field_attach_delete_bundle($entity_type, $bundle, $instances) {
* @} End of "ingroup field_attach"
*/
-/**********************************************************************
- * Field Storage API
- **********************************************************************/
-
/**
* @ingroup field_storage
* @{
@@ -2346,10 +2342,6 @@ function hook_field_widget_properties_ENTITY_TYPE_alter(&$widget, $context) {
* @} End of "ingroup field_storage"
*/
-/**********************************************************************
- * Field CRUD API
- **********************************************************************/
-
/**
* @ingroup field_crud
* @{
@@ -2603,10 +2595,6 @@ function hook_field_storage_purge($entity_type, $entity, $field, $instance) {
* @} End of "ingroup field_crud"
*/
-/**********************************************************************
- * TODO: I'm not sure where these belong yet.
- **********************************************************************/
-
/**
* Determine whether the user has access to a given field.
*
@@ -2633,3 +2621,7 @@ function hook_field_access($op, $field, $entity_type, $entity, $account) {
}
return TRUE;
}
+
+/**
+ * @} End of "ingroup hooks"
+ */