You are here

constant MODULE_BUILDER_EXTRACT_HOOK_PATTERN in Module Builder 5

Pattern that captures 3 things about a hook from one of the hook files: Description, Declaraion and Name (in that order).

1 use of MODULE_BUILDER_EXTRACT_HOOK_PATTERN
module_builder_extract_hook_data in ./module_builder.module
Extracts hook information based on type parameter.

File

./module_builder.module, line 29
Builds scaffolding for custom modules.

Code

define('MODULE_BUILDER_EXTRACT_HOOK_PATTERN', '#\\/\\*\\*\\n \\* (\\w.*?)\\s+\\*\\s+\\*.*?(function (hook_.*?)\\(.*?\\) {)#ms');