diff options
Diffstat (limited to 'modules/field')
-rw-r--r-- | modules/field/field.crud.inc | 6 | ||||
-rw-r--r-- | modules/field/field.form.inc | 2 | ||||
-rw-r--r-- | modules/field/field.install | 2 | ||||
-rw-r--r-- | modules/field/field.module | 2 | ||||
-rw-r--r-- | modules/field/field.test | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/modules/field/field.crud.inc b/modules/field/field.crud.inc index 5e7d20c69..aad0e9aa8 100644 --- a/modules/field/field.crud.inc +++ b/modules/field/field.crud.inc @@ -70,7 +70,7 @@ * as Schema API index specifications. Only columns that appear in the * 'columns' setting are allowed. Note that field types can specify * default indexes, which can be modified or added to when - * creating a field. + * creating a field. * - settings (array) * A sub-array of key/value pairs of field-type-specific settings. Each * field type module defines and documents its own field settings. @@ -155,7 +155,7 @@ * the display formatter used in this context. * - module (string, read-only) * The name of the module which implements the display formatter. - * - example_context_2 + * - example_context_2 * - ... * * TODO D7 : document max length for field types, widget types, @@ -194,7 +194,7 @@ * definition of a field-type index by providing an index with the * same name, or to remove it by redefining it as an empty array * of columns. Overriding field-type indexes should be done - * carefully, for it might seriously affect the site's performance. + * carefully, for it might seriously affect the site's performance. * - settings: each omitted setting is given the default value defined in * hook_field_info(). * @throw diff --git a/modules/field/field.form.inc b/modules/field/field.form.inc index bc7b1426d..f321d2dc7 100644 --- a/modules/field/field.form.inc +++ b/modules/field/field.form.inc @@ -15,7 +15,7 @@ function field_default_form($obj_type, $object, $field, $instance, $items, &$for // This could be called with no object, as when a UI module creates a // dummy form to set default values. if ($object) { - list($id, ,) = field_attach_extract_ids($obj_type, $object); + list($id, , ) = field_attach_extract_ids($obj_type, $object); } $addition = array(); diff --git a/modules/field/field.install b/modules/field/field.install index 5ac23bc96..539f120d3 100644 --- a/modules/field/field.install +++ b/modules/field/field.install @@ -130,7 +130,7 @@ function field_schema() { 'primary key' => array('id'), 'unique keys' => array( 'field_name_bundle' => array('field_name', 'bundle'), - ), + ), 'indexes' => array( // used by field_read_instances 'widget_active_deleted' => array('widget_active', 'deleted'), diff --git a/modules/field/field.module b/modules/field/field.module index 8d19f47ed..411a05317 100644 --- a/modules/field/field.module +++ b/modules/field/field.module @@ -101,7 +101,7 @@ function field_help($path, $arg) { switch ($path) { case 'admin/help#field': $output = '<p>' . t('The Field API allows custom data fields to be attached to Drupal objects and takes care of storing, loading, editing, and rendering field data. Any object type (node, user, etc.) can use the Field API to make itself "fieldable" and thus allow fields to be attached to it.') . '</p>'; - $output .= '<p>' .t('The Field API provides no user interface on its own. Use the Content Construction Kit (CCK) contrib module to manage custom fields via a web browser.') . '</p>'; + $output .= '<p>' . t('The Field API provides no user interface on its own. Use the Content Construction Kit (CCK) contrib module to manage custom fields via a web browser.') . '</p>'; return $output; } } diff --git a/modules/field/field.test b/modules/field/field.test index a473d0c77..61f8009e4 100644 --- a/modules/field/field.test +++ b/modules/field/field.test @@ -1039,7 +1039,7 @@ class FieldFormTestCase extends DrupalWebTestCase { $this->assertPattern("|$pattern|s", 'Widgets are displayed in the correct order'); $this->assertFieldByName("$this->field_name[$delta][value]", '', "New widget is displayed"); $this->assertFieldByName("$this->field_name[$delta][_weight]", $delta, "New widget has the right weight"); - $this->assertNoField("$this->field_name[". ($delta + 1) . '][value]', 'No extraneous widget is displayed'); + $this->assertNoField("$this->field_name[" . ($delta + 1) . '][value]', 'No extraneous widget is displayed'); } /** |