diff --git a/modules/ds_extras/ds_extras.admin.inc b/modules/ds_extras/ds_extras.admin.inc index d9cac88..dae8d91 100644 --- a/modules/ds_extras/ds_extras.admin.inc +++ b/modules/ds_extras/ds_extras.admin.inc @@ -138,9 +138,20 @@ function ds_extras_field_ui_alter(&$form, &$form_state) { $i = 1; foreach (element_children($form['fields']) as $key) { - + // display changed label somewhere + if (isset($field_settings[$key]['ft']['lb'])) { + // give more indication that label and the field template can be overriden here + $link_text = t('Label override: @label | Field template', array('@label'=>$field_settings[$key]['ft']['lb'])); + // add the indication to the label of the field as well + $form['fields'][$key]['human_name']['#markup'] .= t(' (Overriden: @label)', array('@label'=>$field_settings[$key]['ft']['lb'])); + } + else { + // give more indication that label and the field template can be overriden here + $link_text = t('Label override | Field template'); + } + $form['fields'][$key]['format']['ft'] = array( - '#prefix' => '' . t('Field template') . '
', + '#prefix' => '' . $link_text . '
', '#suffix' => '
', ); $i++; @@ -149,6 +160,8 @@ function ds_extras_field_ui_alter(&$form, &$form_state) { // Functions. $form['fields'][$key]['format']['ft']['function'] = array( + // add a title for better comprehension :) maybe even a link to adv_help? + '#title' => t('Field template type'), '#type' => 'select', '#options' => $functions, '#default_value' => $field_function,