Follow code style for complex hooks

Created on 16 June 2017, almost 8 years ago
Updated 3 August 2024, 10 months ago

Problem/Motivation

Follow code style for complex hooks according to https://www.drupal.org/docs/develop/coding-standards/api-documentation-a... that is add 'for' following by the hook specialisation.

/**
 * Implements hook_form_FORM_ID_alter() for node_type_form().
 */
function mymodule_form_node_type_form_alter(&$form, &$form_state) { 

Steps to reproduce

Remaining tasks

Postponed on #2890681: Detect complex hooks seperately.
Reconsider the scope of this issue once a Coder sniff is created. The scope is not normally by module.

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

📌 Task
Status

Postponed

Version

11.0 🔥

Component
Other 

Last updated about 12 hours ago

Created by

🇳🇱Netherlands clemens.tolboom Groningen, 🇳🇱/🇪🇺

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024