Skip to content
Snippets Groups Projects
Commit c666e49e authored by Kevin Hankens's avatar Kevin Hankens
Browse files

#1051096 by bojanz adding help text

parent aa5c05b2
No related branches found
No related tags found
No related merge requests found
......@@ -263,9 +263,16 @@ function tablefield_field_widget_form(&$form, &$form_state, $field, $instance, $
$default_count_rows = isset($items[0]['tablefield']['rebuild']['count_cols']) ? $items[0]['tablefield']['rebuild']['count_cols'] : 5;
}
if (!empty($instance['description'])) {
$help_text = $instance['description'];
}
else {
$help_text = t('The first row will appear as the table header. Leave the first row blank if you do not need a header.');
}
$element['tablefield'] = array(
'#title' => $element['#title'],
'#description' => t('The first row will appear as the table header. Leave the first row blank if you do not need a header.'),
'#description' => $help_text,
'#attributes' => array('id' => 'form-tablefield-' . $field['field_name'] . '-' . $delta, 'class' => array('form-tablefield')),
'#type' => 'fieldset',
'#tree' => TRUE,
......
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