Commit f3ed3283 authored by webchick's avatar webchick

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

parent 8bac2dd3
......@@ -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.
......@@ -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.
......@@ -38,7 +38,7 @@
* Available variables:
* - $user_profile: All user profile data. Ready for print.
* - $profile: Keyed array of profile categories and their items or other data
* provided by modules.
* provided by modules.
* - TODO D7 : document $FIELD_NAME_rendered variables.
*
* @see template_preprocess_user_profile()
......
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