Problem/Motivation

hook_help function missing in .module file

This function provides online user help.

By implementing hook_help(), a module can make documentation available to the user for the module as a whole, or for specific pages. Help for developers should usually be provided via function header comments in the code, or in special API example files.

More information: https://api.drupal.org/api/drupal/core%21modules%21help%21help.api.php/function/hook_help/11.x

Steps to reproduce

N/A

Proposed resolution

Implement the hook

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Data model changes

N/A

CommentFileSizeAuthor
#4 Screenshot from 2025-08-12 13-56-18.png182.82 KBanweshas
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

danrod created an issue. See original summary.

anweshas’s picture

Assigned: Unassigned » anweshas

I would like to work on this issue. I will implement hook_help() in the media_entity_link.module file to provide basic module usage information on the help page, following the API documentation.

anweshas’s picture

Assigned: anweshas » Unassigned
Status: Active » Needs review
StatusFileSize
new182.82 KB

Created the help page content for the Media Entity Link module by restructuring it with headings and paragraphs for better readability, and including a brief description, usage instructions, and references to the online documentation.
Here is the ss of the help page.
issue-ss

anweshas’s picture

phpcs and phpstan issues were coming up in my MR, fixed those as well.

ankitv18’s picture

Status: Needs review » Needs work

Why you have reverted hook attribute? Also revert phpcs and phpstan fixes.
Moving back to Needs work

neerajsingh made their first commit to this issue’s fork.

neerajsingh’s picture

Status: Needs work » Needs review

Added hook_help for the module.
There a few issues with PHP standard validations in the test files, we can have a followup issue created for it.

ankitv18 changed the visibility of the branch 3540573-implement-hookhelp to hidden.

ankitv18’s picture

Status: Needs review » Reviewed & tested by the community

I've just bypass the phptstan previous major CI checks.
@danrod rest looks fine, moving into RTBC

danrod’s picture

It's alright, let's bypass it for now, let's do it like that for now, I'll merge if to the 2.0.x if you don't mind @d.fisher , @dishabhadra , @vladimiraus

danrod’s picture

I'll merge this for now, if there's any issue or concern, I can always re-open this.

  • danrod committed d4571747 on 2.0.x authored by neerajsingh
    Issue #3540573 by anweshas, neerajsingh, danrod, ankitv18: Implement...
danrod’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.