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) { ...@@ -1271,7 +1271,7 @@ function hook_field_attach_delete_revision($entity_type, $entity) {
*/ */
function hook_field_attach_purge($entity_type, $entity, $field, $instance) { function hook_field_attach_purge($entity_type, $entity, $field, $instance) {
// find the corresponding data in mymodule and purge it // 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); mymodule_remove_mydata($entity->nid);
} }
} }
......
...@@ -135,7 +135,7 @@ function field_default_insert($entity_type, $entity, $field, $instance, $langcod ...@@ -135,7 +135,7 @@ function field_default_insert($entity_type, $entity, $field, $instance, $langcod
* - the name of a view mode * - the name of a view mode
* - or an array of display settings to use for display, as found in the * - or an array of display settings to use for display, as found in the
* 'display' entry of $instance definitions. * 'display' entry of $instance definitions.
*/ */
function field_default_prepare_view($entity_type, $entities, $field, $instances, $langcode, &$items, $display) { function field_default_prepare_view($entity_type, $entities, $field, $instances, $langcode, &$items, $display) {
// Group entities, instances and items by formatter module. // Group entities, instances and items by formatter module.
$modules = array(); $modules = array();
......
...@@ -98,8 +98,8 @@ class ListFieldTestCase extends FieldTestCase { ...@@ -98,8 +98,8 @@ class ListFieldTestCase extends FieldTestCase {
} }
/** /**
* List module UI tests. * List module UI tests.
*/ */
class ListFieldUITestCase extends FieldTestCase { class ListFieldUITestCase extends FieldTestCase {
public static function getInfo() { public static function getInfo() {
return array( return array(
......
...@@ -2880,7 +2880,7 @@ class FieldBulkDeleteTestCase extends FieldTestCase { ...@@ -2880,7 +2880,7 @@ class FieldBulkDeleteTestCase extends FieldTestCase {
public static function getInfo() { public static function getInfo() {
return array( return array(
'name' => 'Field bulk delete tests', 'name' => 'Field bulk delete tests',
'description'=> 'Bulk delete fields and instances, and clean up afterwards.', 'description' => 'Bulk delete fields and instances, and clean up afterwards.',
'group' => 'Field API', 'group' => 'Field API',
); );
} }
...@@ -3127,7 +3127,7 @@ class EntityPropertiesTestCase extends FieldTestCase { ...@@ -3127,7 +3127,7 @@ class EntityPropertiesTestCase extends FieldTestCase {
public static function getInfo() { public static function getInfo() {
return array( return array(
'name' => 'Entity properties', 'name' => 'Entity properties',
'description'=> 'Tests entity properties.', 'description' => 'Tests entity properties.',
'group' => 'Entity API', 'group' => 'Entity API',
); );
} }
......
...@@ -288,7 +288,7 @@ function field_test_field_storage_query($field_id, $conditions, $count, &$cursor ...@@ -288,7 +288,7 @@ function field_test_field_storage_query($field_id, $conditions, $count, &$cursor
case '<=': case '<=':
case '>': case '>':
case '>=': case '>=':
eval('$match = $match && '. $row->{$column} . ' ' . $operator . ' '. $value); eval('$match = $match && ' . $row->{$column} . ' ' . $operator . ' '. $value);
break; break;
case 'IN': case 'IN':
$match = $match && in_array($row->{$column}, $value); $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