Skip to content
Snippets Groups Projects
Unverified Commit 258b6ded authored by Roman Zimmermann's avatar Roman Zimmermann Committed by GitHub
Browse files

Merge pull request #309 from moreonion/headline

[layout] add field for big headline
parents 797102a5 c2045e5b
No related branches found
Tags 8.x-4.4
No related merge requests found
......@@ -50,5 +50,27 @@ function campaignion_layout_field_default_field_bases() {
'type' => 'image',
);
// Exported field_base: 'layout_headline'.
$field_bases['layout_headline'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'layout_headline',
'global_block_settings' => 2,
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'locked' => 0,
'module' => 'text',
'settings' => array(
'max_length' => 150,
),
'translatable' => 0,
'type' => 'text',
);
return $field_bases;
}
......@@ -8,3 +8,4 @@ dependencies[] = little_helpers:little_helpers (>=2.0-alpha10)
features[features_api][] = api:2
features[field_base][] = layout
features[field_base][] = layout_background_image
features[field_base][] = layout_headline
......@@ -180,6 +180,7 @@ function campaignion_layout_form_node_form_alter(&$form, &$form_state) {
*/
function campaignion_layout_campaignion_layout_dependent_fields() {
$dependent_fields['layout_background_image'] = TRUE;
$dependent_fields['layout_headline'] = TRUE;
return $dependent_fields;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment