Skip to content
Snippets Groups Projects
Commit f3ed3283 authored by Angie Byron's avatar Angie Byron
Browse files

#361683 follow-up by sun: Remove more windows line endings.

parent 8bac2dd3
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Showing
with 5890 additions and 5890 deletions
......@@ -2006,10 +2006,10 @@ function template_preprocess_node(&$variables) {
}
// Clean up name so there are no underscores.
$variables['template_files'][] = 'node-' . str_replace('_', '-', $node->type);
$variables['template_files'][] = 'node-' . $node->nid;
// Add $FIELD_NAME_rendered variables for fields.
drupal_function_exists('field_attach_preprocess');
$variables['template_files'][] = 'node-' . $node->nid;
// Add $FIELD_NAME_rendered variables for fields.
drupal_function_exists('field_attach_preprocess');
$variables += field_attach_preprocess('node', $node);
}
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -3,5 +3,4 @@ name = List
description = Defines list field types. Use with Options to create selection lists.
package = Core - fields
core = 7.x
files[]=list.module
This diff is collapsed.
......@@ -3,5 +3,4 @@ name = Number
description = Defines numeric field types.
package = Core - fields
core = 7.x
files[]=number.module
This diff is collapsed.
This diff is collapsed.
......@@ -3,5 +3,4 @@ name = Text
description = Defines simple text field types.
package = Core - fields
core = 7.x
files[]=text.module
This diff is collapsed.
<?php
$field = array(
'field_name' => 'field_single',
'type' => 'text',
);
field_create_field($field);
$instance = array(
'field_name' => 'field_single',
'bundle' => 'article',
'label' => 'Single',
'widget' => array(
'type' => 'text_textfield',
),
'display' => array(
'full' => array(
'label' => 'above',
'type' => 'text_default',
'exclude' => 0,
),
),
);
field_create_instance($instance);
$instance['bundle'] = 'user';
field_create_instance($instance);
$field = array(
'field_name' => 'field_multiple',
'cardinality' => FIELD_CARDINALITY_UNLIMITED,
'type' => 'text',
);
field_create_field($field);
$instance = array(
'field_name' => 'field_multiple',
'bundle' => 'article',
'label' => 'Multiple',
'widget' => array(
'type' => 'text_textfield',
),
'display' => array(
'full' => array(
'label' => 'above',
'type' => 'text_default',
'exclude' => 0,
),
),
);
field_create_instance($instance);
$instance['bundle'] = 'user';
field_create_instance($instance);
// Number
$field = array(
'field_name' => 'field_integer',
'type' => 'number_integer',
);
field_create_field($field);
$instance = array(
'field_name' => 'field_integer',
'bundle' => 'article',
'label' => 'Integer',
'widget' => array(
'type' => 'number',
),
'display' => array(
'full' => array(
'label' => 'above',
'type' => 'number_integer',
'exclude' => 0,
),
),
);
field_create_instance($instance);
$field = array(
'field_name' => 'field_decimal',
'type' => 'number_decimal',
);
field_create_field($field);
$instance = array(
'field_name' => 'field_decimal',
'bundle' => 'article',
'label' => 'Decimal',
'widget' => array(
'type' => 'number',
),
'display' => array(
'full' => array(
'label' => 'above',
'type' => 'number_decimal',
'exclude' => 0,
),
),
);
field_create_instance($instance);
<?php
$field = array(
'field_name' => 'field_single',
'type' => 'text',
);
field_create_field($field);
$instance = array(
'field_name' => 'field_single',
'bundle' => 'article',
'label' => 'Single',
'widget' => array(
'type' => 'text_textfield',
),
'display' => array(
'full' => array(
'label' => 'above',
'type' => 'text_default',
'exclude' => 0,
),
),
);
field_create_instance($instance);
$instance['bundle'] = 'user';
field_create_instance($instance);
$field = array(
'field_name' => 'field_multiple',
'cardinality' => FIELD_CARDINALITY_UNLIMITED,
'type' => 'text',
);
field_create_field($field);
$instance = array(
'field_name' => 'field_multiple',
'bundle' => 'article',
'label' => 'Multiple',
'widget' => array(
'type' => 'text_textfield',
),
'display' => array(
'full' => array(
'label' => 'above',
'type' => 'text_default',
'exclude' => 0,
),
),
);
field_create_instance($instance);
$instance['bundle'] = 'user';
field_create_instance($instance);
// Number
$field = array(
'field_name' => 'field_integer',
'type' => 'number_integer',
);
field_create_field($field);
$instance = array(
'field_name' => 'field_integer',
'bundle' => 'article',
'label' => 'Integer',
'widget' => array(
'type' => 'number',
),
'display' => array(
'full' => array(
'label' => 'above',
'type' => 'number_integer',
'exclude' => 0,
),
),
);
field_create_instance($instance);
$field = array(
'field_name' => 'field_decimal',
'type' => 'number_decimal',
);
field_create_field($field);
$instance = array(
'field_name' => 'field_decimal',
'bundle' => 'article',
'label' => 'Decimal',
'widget' => array(
'type' => 'number',
),
'display' => array(
'full' => array(
'label' => 'above',
'type' => 'number_decimal',
'exclude' => 0,
),
),
);
field_create_instance($instance);
/* $Id$ */
/* Node display */
.field .field-label,
.field .field-label-inline,
......@@ -27,4 +29,4 @@
.node-form .number {
display:inline;
width:auto;
}
\ No newline at end of file
}
This diff is collapsed.
......@@ -20,7 +20,7 @@
* - $terms: the themed list of taxonomy term links output from theme_links().
* - $submitted: themed submission information output from
* theme_node_submitted().
* TODO D7 : document $FIELD_NAME_rendered variables.
* TODO D7 : document $FIELD_NAME_rendered variables.
*
* Other variables:
* - $node: Full node object. Contains data that may not be safe.
......
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment