hook_help function missing in .module file

Created on 23 November 2023, 12 months ago
Updated 21 March 2024, 8 months ago

hook_help function missing in .module file

📌 Task
Status

Needs review

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

Comments & Activities

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

    Add hook help by creating file with name sector_megamenu.module

     <?php
    
    use Drupal\Core\Routing\RouteMatchInterface;
    
    /**
     * Implements hook_help().
     */
    function YOUR_MODULE_help($route_name, RouteMatchInterface $route_match) {
      switch ($route_name) {
        case 'help.page.YOUR_MODULE':
          return '<p>' . t('This is a description of what your module does.') . '</p>';
      }
    }
    }
    
  • First commit to issue fork.
  • Status changed to Needs review 12 months ago
  • 🇮🇳India viren18febS

    I have added patch for hook_help(), please review.

  • Status changed to Needs work 8 months ago
  • @viren18febS , the help() is added but doesn't seem like in the correct format. Please check other modules help_page , where description, uses and configuration were added.

  • Status changed to Needs review 8 months ago
  • 🇮🇳India viren18febS

    Hi Tanuja Bohra

    There is no configurations for this module. everything related to the module is available in README.md file. we have How it works section where the working structure is defined.

  • @viren18febS, but we can add the help content like it's added for other help pages and the formatting is different than other help pages.

Production build 0.71.5 2024