Problem/Motivation

When you enable the module, the method hook_help is not implemented.

Steps to reproduce

Download and activate the module and visit its help page.

Proposed resolution

Implement the hook_help and describe the functionality of the module and it's usage.

Remaining tasks

Implement hook_help.

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

jitesh_1 created an issue. See original summary.

jitesh_1’s picture

StatusFileSize
new1.28 KB

The next patch solves the task.

gayatri chahar’s picture

Status: Active » Needs review
StatusFileSize
new1.28 KB

I submitted patch with some changes
Please review it
Thanks

dharmeshbarot’s picture

StatusFileSize
new2.46 KB

added content in hook_help()! needs review

paraderojether’s picture

@ gayatri chahar

I applied patch #3 against Private Message Invites 1.0.4 with Drupal core version 9.4.7 and I am getting this error:

"Fatal error: Cannot redeclare private_message_help() (previously declared in /var/www/docroot/modules/private_message/private_message.module:481) in /var/www/docroot/modules/private_message_invite/private_message_invite.module on line 22"

The error can be fixed by renaming the private_message_help into 'private_message_invite_help'.

Please check.

Thank You.

gayatri chahar’s picture

StatusFileSize
new1.29 KB

Addressed #5 comment and made changes in patch
Thanks @paraderojether

gayatri chahar’s picture

StatusFileSize
new1.29 KB

Please review this one.
Thanks

paraderojether’s picture

Hi @gayatri chahar

I reviewed patch #7 and there's another concern about this patch is getting this Warning: file_get_contents(/var/www/docroot/modules/private_message_invite/README.md): Failed to open stream: No such file or directory in private_message_invite_help() (line 25 of /var/www/docroot/modules/private_message_invite/private_message_invite.module). I just realized that README.txt is not yet replaced with README.md, and this warning can be fixed by replacing the README.md with => README.txt in this line $text = file_get_contents(__DIR__ . '/README.md');.

Could you update the patch?
Thanks!

paraderojether’s picture

Status: Needs review » Needs work

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

himanshu_jhaloya’s picture

Assigned: Unassigned » himanshu_jhaloya
himanshu_jhaloya’s picture

Status: Needs work » Needs review
StatusFileSize
new1.29 KB

Reroll the patch #7 please review

himanshu_jhaloya’s picture

Assigned: himanshu_jhaloya » Unassigned
paraderojether’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new73.93 KB

Hi @ himanshu_jhaloya

I applied patch #12 and this now works fine for me.

Thank You.

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

manpreet_singh’s picture

manpreet_singh’s picture

Status: Reviewed & tested by the community » Fixed
manpreet_singh’s picture

Status: Fixed » Closed (fixed)