- Sync differences in white spaces between CCK2 and CCK3.

parent 898a7b60
......@@ -2489,7 +2489,7 @@ function content_content_extra_fields($type_name) {
'description' => t('Comment module form.'),
'weight' => 30
);
}
}
if (module_exists('locale') && variable_get("language_content_type_$type_name", 0)) {
$extra['language'] = array(
'label' => t('Language'),
......
......@@ -243,7 +243,7 @@ function content_multiple_value_form(&$form, &$form_state, $field, $items) {
$form_element['#prefix'] = '<div id="'. $field_name_css .'-items">';
$form_element['#suffix'] = '</div>';
$form_element[$field_name .'_add_more']['#prefix'] = '<div class="content-add-more clear-block">';
$form_element[$field_name .'_add_more']['#suffix'] = '</div>';
$form_element[$field_name .'_add_more']['#suffix'] = '</div>';
}
return $form_element;
}
......@@ -265,7 +265,6 @@ function content_add_more_submit($form, &$form_state) {
}
}
/**
* Menu callback for AHAH addition of new empty widgets.
*/
......
......@@ -15,7 +15,7 @@ function nodereference_menu() {
'title' => 'Nodereference autocomplete',
'page callback' => 'nodereference_autocomplete',
'access callback' => 'nodereference_autocomplete_access',
'access arguments' => array(2),
'access arguments' => array(2),
'type' => MENU_CALLBACK
);
return $items;
......@@ -182,7 +182,7 @@ function nodereference_field_settings($op, $field) {
* Implementation of hook_field().
*/
function nodereference_field($op, &$node, $field, &$items, $teaser, $page) {
static $sanitized_nodes = array();
static $sanitized_nodes = array();
switch ($op) {
// When preparing a translation, load any translations of existing references.
......@@ -270,7 +270,7 @@ function nodereference_field($op, &$node, $field, &$items, $teaser, $page) {
}
}
}
return $items;
return $items;
}
}
......@@ -322,7 +322,7 @@ function theme_nodereference_formatter_default($element) {
if (!$element['#item']['safe']['status']) {
$output = '<span class="node-unpublished"> '. t('(Unpublished)') ." $output</span>";
}
}
}
return $output;
}
......@@ -953,9 +953,9 @@ function _nodereference_potential_references_standard($field, $string = '', $mat
return $references;
}
/**
/**
* Check access to the menu callback of the autocomplete widget.
*
*
* Check for both 'edit' and 'view' access in the unlikely event
* a user has edit but not view access.
*/
......
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