Advertisement
Guest User

drupal 7 - show mandatory state of manage fields table

a guest
Jan 20th, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.69 KB | None | 0 0
  1. diff --git a/modules/field_ui/field_ui.admin.inc b/modules/field_ui/field_ui.admin.inc
  2. index 7d09d6f..7faf40f 100644
  3. --- a/modules/field_ui/field_ui.admin.inc
  4. +++ b/modules/field_ui/field_ui.admin.inc
  5. @@ -342,7 +342,7 @@ function field_ui_field_overview_form($form, &$form_state, $entity_type, $bundle
  6.        '#row_type' => 'field',
  7.        '#region_callback' => 'field_ui_field_overview_row_region',
  8.        'label' => array(
  9. -        '#markup' => check_plain($instance['label']),
  10. +        '#markup' => ($instance['required']?'<sup><b><span style="color: #f00;">*</span></b></sup>':'') . check_plain($instance['label']),
  11.        ),
  12.        'weight' => array(
  13.          '#type' => 'textfield',
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement