Commit a4501a2c authored by webchick's avatar webchick

#431870 by yched: Whitespace clean-up.

parent 1372d90c
......@@ -238,7 +238,7 @@ function hook_field_validate($obj_type, $object, $field, $instance, $items, &$er
/**
* Define custom presave behavior for this module's field types.
*
*
* TODO: The behavior of this hook is going to change (see
* field_attach_presave()).
*
......@@ -292,7 +292,7 @@ function hook_field_update($obj_type, $object, $field, $instance, $items) {
/**
* Define custom delete behavior for this module's field types.
*
*
* This hook is invoked just before the data is deleted from field storage.
*
* @param $obj_type
......@@ -311,7 +311,7 @@ function hook_field_delete($obj_type, $object, $field, $instance, $items) {
/**
* Define custom delete_revision behavior for this module's field types.
*
*
* This hook is invoked just before the data is deleted from field storage,
* and will only be called for fieldable types that are versioned.
*
......@@ -348,7 +348,7 @@ function hook_field_sanitize($obj_type, $object, $field, $instance, $items) {
/**
* Define custom prepare_translation behavior for this module's field types.
*
*
* TODO: This hook may or may not survive in Field API.
*
* @param $obj_type
......@@ -431,7 +431,7 @@ function hook_field_widget_error($element, $error) {
/**
* Act on field_attach_form.
*
*
* This hook is invoked after the field module has performed the operation.
*
* See field_attach_form() for details and arguments.
......@@ -484,7 +484,7 @@ function hook_field_attach_load($obj_type, $object) {
/**
* Act on field_attach_validate.
*
*
* This hook is invoked after the field module has performed the operation.
*
* See field_attach_validate() for details and arguments.
......@@ -494,7 +494,7 @@ function hook_field_attach_validate($obj_type, $object, &$errors) {
/**
* Act on field_attach_submit.
*
*
* This hook is invoked after the field module has performed the operation.
*
* See field_attach_submit() for details and arguments.
......@@ -504,7 +504,7 @@ function hook_field_attach_submit($obj_type, $object, $form, &$form_state) {
/**
* Act on field_attach_presave.
*
*
* This hook is invoked after the field module has performed the operation.
*
* See field_attach_presave() for details and arguments.
......@@ -564,7 +564,7 @@ function hook_field_attach_delete($obj_type, $object) {
/**
* Act on field_attach_delete_revision.
*
*
* This hook is invoked after the field module has performed the operation.
*
* See field_attach_delete_revision() for details and arguments.
......@@ -574,7 +574,7 @@ function hook_field_attach_delete_revision($obj_type, $object) {
/**
* Act on field_attach_view.
*
*
* This hook is invoked after the field module has performed the operation.
*
* @param $output
......@@ -591,7 +591,7 @@ function hook_field_attach_view($output, $obj_type, $object, $teaser) {
/**
* Act on field_attach_create_bundle.
*
*
* This hook is invoked after the field module has performed the operation.
*
* See field_attach_create_bundle() for details and arguments.
......@@ -601,7 +601,7 @@ function hook_field_attach_create_bundle($bundle) {
/**
* Act on field_attach_rename_bundle.
*
*
* This hook is invoked after the field module has performed the operation.
*
* See field_attach_rename_bundle() for details and arguments.
......@@ -611,7 +611,7 @@ function hook_field_rename_bundle($bundle_old, $bundle_new) {
/**
* Act on field_attach_delete_bundle.
*
*
* This hook is invoked after the field module has performed the operation.
*
* See field_attach_delete_bundle() for details and arguments.
......@@ -764,7 +764,7 @@ function hook_field_storage_delete_instance($field_name, $bundle) {
/**
* Act on a field being created.
*
*
* This hook is invoked after the field is created and so it cannot modify the
* field itself.
*
......@@ -778,7 +778,7 @@ function hook_field_create_field($field) {
/**
* Act on a field instance being created.
*
*
* This hook is invoked after the instance record is saved and so it cannot
* modify the instance itself.
*
......@@ -790,7 +790,7 @@ function hook_field_create_instance($instance) {
/**
* Act on a field being deleted.
*
*
* This hook is invoked just before the field is deleted.
*
* TODO: Not implemented.
......@@ -804,7 +804,7 @@ function hook_field_delete_field($field) {
/**
* Act on a field instance being updated.
*
*
* This hook is invoked after the instance record is saved and so it cannot
* modify the instance itself.
*
......@@ -818,7 +818,7 @@ function hook_field_update_instance($instance) {
/**
* Act on a field instance being deleted.
*
*
* This hook is invoked just before the instance is deleted.
*
* TODO: Not implemented.
......
......@@ -57,7 +57,7 @@ function __construct($errors) {
/**
* Argument for an insert operation.
* This is used in hook_field_storage_write when updating an
* This is used in hook_field_storage_write when updating an
* existing object.
*/
define('FIELD_STORAGE_UPDATE', 'update');
......@@ -284,7 +284,7 @@ function _field_attach_load($obj_type, $objects, $age = FIELD_LOAD_CURRENT) {
// results are merged into the $queried_objects, and into the $additions
// array, that will eventually get cached.
// Invoke hook_field_attach_pre_load(): let any module load field
// Invoke hook_field_attach_pre_load(): let any module load field
// data before the storage engine, accumulating along the way.
$additions_pre_load = array();
$skip_fields = array();
......
......@@ -161,7 +161,7 @@ function _field_info_collate_types($reset = FALSE) {
* an array of all bundles to which the field is assigned.
* - instances: array whose keys are bundle names and whose values
* are an array, keyed by field name, of all Instance objects in
* that bundle.
* that bundle.
*/
function _field_info_collate_fields($reset = FALSE) {
static $info;
......
......@@ -949,7 +949,7 @@ class FieldTestCase extends DrupalWebTestCase {
} catch (FieldException $e) {
$this->pass(t('Cannot create a field with no type.'));
}
// Check that field name is required.
try {
$field_definition = array('type' => 'test_field');
......@@ -958,7 +958,7 @@ class FieldTestCase extends DrupalWebTestCase {
} catch (FieldException $e) {
$this->pass(t('Cannot create an unnamed field.'));
}
$field_definition = array(
'field_name' => drupal_strtolower($this->randomName()),
'type' => 'test_field',
......
......@@ -168,7 +168,7 @@ function theme_field_formatter_list_key($element) {
*
* Call the allowed_values_function to retrieve the allowed
* values array.
*
*
* TODO Rework this to create a method of selecting plugable allowed values lists.
*/
function list_allowed_values($field) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment