You are here

field_label_plurals.install in Field label plurals 8

Same filename and directory in other branches
  1. 7 field_label_plurals.install

Shows a message how to use the module when enabling.

File

field_label_plurals.install
View source
<?php

/**
 * @file
 * Shows a message how to use the module when enabling.
 */

/**
 * Implements hook_install().
 */
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.'));
  }
}

Functions

Namesort descending Description
field_label_plurals_install Implements hook_install().