Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
877047cb
Commit
877047cb
authored
11 years ago
by
Jennifer Hodgdon
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#1250500
by joachim, jhodgdon: Add defgroup for callback functions
parent
893ca9e1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/includes/module.inc
+32
-1
32 additions, 1 deletion
core/includes/module.inc
core/modules/system/theme.api.php
+2
-0
2 additions, 0 deletions
core/modules/system/theme.api.php
with
34 additions
and
1 deletion
core/includes/module.inc
+
32
−
1
View file @
877047cb
...
@@ -617,11 +617,42 @@ function module_uninstall($module_list = array(), $uninstall_dependents = TRUE)
...
@@ -617,11 +617,42 @@ function module_uninstall($module_list = array(), $uninstall_dependents = TRUE)
* just models that you can modify. Only the hooks implemented within modules
* just models that you can modify. Only the hooks implemented within modules
* are executed when running Drupal.
* are executed when running Drupal.
*
*
* See also @link themeable the themeable group page. @endlink
* @see themeable
* @see callbacks
*
*
* @} End of "defgroup hooks".
* @} End of "defgroup hooks".
*/
*/
/**
* @defgroup callbacks Callbacks
* @{
* Callback function signatures.
*
* Drupal's API sometimes uses callback functions to allow you to define how
* some type of processing happens. A callback is a function with a defined
* signature, which you define in a module. Then you pass the function name as
* a parameter to a Drupal API function or return it as part of a hook
* implementation return value, and your function is called at an appropriate
* time. For instance, when setting up batch processing you might need to
* provide a callback function for each processing step and/or a callback for
* when processing is finished; you would do that by defining these functions
* and passing their names into the batch setup function.
*
* Callback function signatures, like hook definitions, are described by
* creating and documenting dummy functions in a *.api.php file; normally, the
* dummy callback function's name should start with "callback_", and you should
* document the parameters and return value and provide a sample function body.
* Then your API documentation can refer to this callback function in its
* documentation. A user of your API can usually name their callback function
* anything they want, although a standard name would be to replace "callback_"
* with the module name.
*
* @see hooks
* @see themeable
*
* @} End of "defgroup callbacks".
*/
/**
/**
* Returns an array of modules required by core.
* Returns an array of modules required by core.
*/
*/
...
...
This diff is collapsed.
Click to expand it.
core/modules/system/theme.api.php
+
2
−
0
View file @
877047cb
...
@@ -62,6 +62,8 @@
...
@@ -62,6 +62,8 @@
*
*
* @see theme()
* @see theme()
* @see hook_theme()
* @see hook_theme()
* @see hooks
* @see callbacks
*
*
* @} End of "defgroup themeable".
* @} End of "defgroup themeable".
*/
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment