You are here

function field_label_plurals_install in Field label plurals 8

Implements hook_install().

File

./field_label_plurals.install, line 11
Shows a message how to use the module when enabling.

Code

function field_label_plurals_install() {
  if (\Drupal::moduleHandler()
    ->moduleExists('field_ui')) {
    drupal_set_message(t('You can now give fields a different label for singular and plural on all field edit pages.'));
  }
  else {
    drupal_set_message(t('Enable the Field UI module if you want to adjust singular and plural labels of fields.'));
  }
}