You are here

function multiselect_help in Multiselect 8

Same name and namespace in other branches
  1. 5.2 multiselect.module \multiselect_help()
  2. 5 multiselect.module \multiselect_help()
  3. 6 multiselect.module \multiselect_help()
  4. 7 multiselect.module \multiselect_help()
  5. 2.x multiselect.module \multiselect_help()

Implements hook_help().

File

./multiselect.module, line 16
Select multiple items in an easier way than the normal node-reference widget.

Code

function multiselect_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.multiselect':
      $output = '';
      $output .= '<p>' . t('Provides a CCK and Form API widget for editing fields that allows users to select from a list of options in a left box and have them visually moved into the right box when options are chosen.') . '</p>';
      $output .= '<h3>' . t('Methods of Implementing a Multiselect Widget') . '</h3>';
      $output .= '<dl>';
      $output .= '<dt><h5>' . t('Method 1: Using CCK') . '</h5></dt>';
      $output .= '<dd>' . t('When creating a new content field, select "Multiselect" as your widget type. You can use Multiselect on fields of type "list", "list_text", "list_number", "node_reference", "taxonomy_term_reference", and "user_reference".') . '</dd>';
      $output .= '<dt><h5>' . t('Method 2: Coding Your Own Module') . '</h5></dt>';
      $output .= '<dd>' . t('If you\'re developing a custom module and wish to use the Multiselect widget in place of a traditional "select" widget, you may use the Drupal 8 Form API.') . '</dd>';
      $output .= '</dl>';
      return $output;
  }
}