Commit 1750dba6 authored by Dries's avatar Dries

- Patch #1024840 by Jody Lynn: whitespace fixes for field module.

parent 2dbeb605
......@@ -1271,7 +1271,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);
}
}
......
......@@ -135,7 +135,7 @@ function field_default_insert($entity_type, $entity, $field, $instance, $langcod
* - the name of a view mode
* - or an array of display settings to use for display, as found in the
* 'display' entry of $instance definitions.
*/
*/
function field_default_prepare_view($entity_type, $entities, $field, $instances, $langcode, &$items, $display) {
// Group entities, instances and items by formatter module.
$modules = array();
......
......@@ -98,8 +98,8 @@ class ListFieldTestCase extends FieldTestCase {
}
/**
* List module UI tests.
*/
* List module UI tests.
*/
class ListFieldUITestCase extends FieldTestCase {
public static function getInfo() {
return array(
......
This diff is collapsed.
......@@ -288,7 +288,7 @@ function field_test_field_storage_query($field_id, $conditions, $count, &$cursor
case '<=':
case '>':
case '>=':
eval('$match = $match && '. $row->{$column} . ' ' . $operator . ' '. $value);
eval('$match = $match && ' . $row->{$column} . ' ' . $operator . ' '. $value);
break;
case 'IN':
$match = $match && in_array($row->{$column}, $value);
......
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