Implement hook_help()

Created on 23 November 2023, 12 months ago
Updated 5 July 2024, 5 months ago

As per the Module documentation guidelines, a module should Provide help text in the Drupal UI. This module is missing an implementation of hook_help().

📌 Task
Status

RTBC

Version

1.0

Component

Code

Created by

🇮🇳India kishan@lnwebworks

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @kishan@lnwebworks
  • 🇮🇳India kishan@lnwebworks

    Add hook help by creating file with name commerce_tokens.module

    <?php

    use Drupal\Core\Routing\RouteMatchInterface;

    /**
    * Implements hook_help().
    */
    function commerce_token_help($route_name, RouteMatchInterface $route_match) {
    switch ($route_name) {
    // Main module help for the commerce_token module.
    case 'help.page.commerce_token':
    $output = '';
    $output .= '

    ' . t('About') . '

    ';
    $output .= '

    ' . t('This module provides new commerce tokens.') . '

    ';
    return $output;

    default:
    }
    }

  • First commit to issue fork.
  • Merge request !1issue-3403729-implement-hookhelp-fixes. → (Open) created by viren18febS
  • Status changed to Needs review 12 months ago
  • 🇮🇳India viren18febS

    I have implemented the hook_help, please review the MP.

  • Status changed to RTBC 5 months ago
  • 🇵🇭Philippines cleavinjosh

    Hi @viren18febS,

    I applied MR!1, it was applied cleanly and implemented the hook_help.

    Please see my attached images for reference.

    I am now moving this to Reviewed & tested by the community
    Thank you.

Production build 0.71.5 2024