Commit 741a18b2 authored by Ra Mänd's avatar Ra Mänd
Browse files

Coding standard fixes.

parent c8eea2ef
......@@ -32,7 +32,7 @@ class FieldCollectionItemMetadataController extends EntityDefaultMetadataControl
foreach ($bundles as $bundle => $fields) {
if (array_intersect_key($fields, $field_collection_fields)) {
$args = array('@type' => $entity_types[$entity_type]['label']);
$properties["host_entity_$entity_type"] = array(
$properties["host_entity_{$entity_type}"] = array(
'label' => t('Host entity (@type)', $args),
'type' => $entity_type,
'description' => t('The @type containing the field collection field (empty if this field collection is attached to an item of a different type).', $args),
......
<?php
/**
* @file
* Module implementing field collection field type.
......@@ -2449,7 +2448,6 @@ function field_collection_file_feeds_set_target($source, $entity, $target, $valu
}
/**
* Implementation of hook_feeds_presave().
*
......
......@@ -86,7 +86,7 @@ function field_collection_item_delete_confirm($form, &$form_state, $field_collec
*/
function field_collection_item_delete_confirm_submit($form, &$form_state) {
$field_collection_item = $form_state['field_collection_item'];
entity_delete('field_collection_item',$field_collection_item->item_id);
entity_delete('field_collection_item', $field_collection_item->item_id);
drupal_set_message(t('%label has been deleted.', array('%label' => drupal_ucfirst($field_collection_item->label()))));
$form_state['redirect'] = '<front>';
}
......@@ -129,7 +129,7 @@ function field_collection_item_add($field_name, $entity_type, $entity_id, $revis
$field_collection_item->setHostEntity($entity_type, $entity, $langcode, FALSE);
$label = $field_collection_item->translatedInstanceLabel();
$title = ($field['cardinality'] == 1) ? $label : t('Add new !instance_label', array('!instance_label' => $label));
$title = $field['cardinality'] == 1 ? $label : t('Add new !instance_label', array('!instance_label' => $label));
drupal_set_title($title);
// Make sure the current user has access to create a field collection item.
......
@charset "UTF-8";
.field-collection-container {
border-bottom: 1px solid #D3D7D9;
border-bottom: 1px solid #d3d7d9;
margin-bottom: 1em;
}
......@@ -16,7 +16,7 @@
.field-collection-view {
padding: 1em 0 0.3em 0;
margin: 0 1em 0 1em;
border-bottom: 1px dotted #D3D7D9;
border-bottom: 1px dotted #d3d7d9;
}
/* If there is no add link, don't show the final border. */
......
......@@ -66,7 +66,6 @@ function field_collection_token_info_alter(&$data) {
);
}
/**
* Implements hook_tokens().
*/
......
......@@ -4,6 +4,7 @@
* @file
* Provide relationship handler for field collection fields.
*/
class field_collection_handler_relationship extends views_handler_relationship {
function option_definition() {
......
Supports Markdown
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