You are here

function maxlength_help in Maxlength 8

Same name and namespace in other branches
  1. 5.2 maxlength.module \maxlength_help()
  2. 5 maxlength.module \maxlength_help()
  3. 6.2 maxlength.module \maxlength_help()
  4. 6 maxlength.module \maxlength_help()
  5. 7.3 maxlength.module \maxlength_help()
  6. 7 maxlength.module \maxlength_help()
  7. 7.2 maxlength.module \maxlength_help()

Implements hook_help().

File

./maxlength.module, line 18
Limits the number of characters in textfields and textareas and shows the amount of characters left.

Code

function maxlength_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.maxlength':
      $output = '<p>' . t('Maxlength creates a new Form Property: #maxlength_js which in conjunction with #maxlength will enforce, via JavaScript, the maxlength of a textfield or textarea and will show the number of characters left.') . '</p>';
      $output .= '<p>' . t('Using the form display page, you can limit textfields and textareas. For textfields this module will use the "<strong>Maximum length</strong>" value set in the <strong>field plugin settings</strong>.') . '</p>';
      return $output;
  }
}