Commit 1b39d666 authored by yched's avatar yched

whitespace fixes

parent c8795074
......@@ -1762,6 +1762,7 @@ function content_format($field, $item, $formatter_name = 'default', $node = NULL
);
}
}
return theme($theme, $element);
}
}
......@@ -2317,7 +2318,7 @@ function content_content_fieldapi($op, $field) {
function content_content_extra_fields($type_name) {
$type = node_get_types('type', $type_name);
$extra = array();
if ($type->has_title) {
$extra['title'] = array(
'label' => $type->title_label,
......@@ -2377,7 +2378,7 @@ function content_content_extra_fields($type_name) {
'description' => t('Poll module settings.'),
'weight' => -3
);
}
}
if (module_exists('upload') && variable_get("upload_$type_name", TRUE)) {
$extra['attachments'] = array(
'label' => t('File attachments'),
......@@ -2416,7 +2417,7 @@ function content_extra_field_weight($type_name, $pseudo_field_name) {
content_clear_type_cache();
$type = content_types($type_name);
}
if (isset($type['extra'][$pseudo_field_name])) {
return $type['extra'][$pseudo_field_name]['weight'];
}
......
......@@ -184,9 +184,9 @@ class content_handler_field extends views_handler_field_node {
foreach ($db_info['columns'] as $column => $attributes) {
$item[$column] = $values->{$this->aliases[$attributes['column']]};
}
$item['#delta'] = $field['multiple'] ? $values->{$this->aliases['delta']} : 0;
return $this->render_link(content_format($field, $item, $options['format'], $node), $values);
}
......
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