Commit 8d61cee0 authored by zhuber's avatar zhuber Committed by jmuzz
Browse files

Issue #2168863 by zhuber: Fixed problems identified by coder review.

parent c0511610
......@@ -230,8 +230,7 @@ function field_collection_update_7002() {
$ids = $select->execute()->fetchCol(0);
entity_delete_multiple('field_collection_item', $ids);
$count = count($ids);
drupal_set_message("Deleted $count orphaned field collection items.");
drupal_set_message(t('Deleted @count orphaned field collection items.', array('@count' => count($ids))));
}
}
......
......@@ -1702,7 +1702,7 @@ function field_collection_field_widget_embed_validate($element, &$form_state, $c
$is_empty_option = (isset($elements['#options']['_none']) && $elements['#value'] == '_none');
if ($is_empty_multiple || $is_empty_string || $is_empty_value || $is_empty_option) {
if (isset($elements['#title'])) {
form_error($elements, t('!name field is required.', array('!name' => $elements['#title'])));
form_error($elements, t('@name field is required.', array('@name' => $elements['#title'])));
}
else {
form_error($elements);
......
<?php
/**
* @file
* Views integration for field collection fields.
*/
/**
* Implements hook_field_views_data().
*
* Views integration for field collection fields. Adds a relationship to the
* default field data.
* Adds a relationship to the default field data.
*
* @see field_views_field_default_views_data()
*/
......
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