-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds new install step, which calls a new hook. (#751)
* Adds new install step, which calls a new hook (hook_localgov_post_install), so modules can run tasks at the end of a site install. * Code style.
- Loading branch information
Showing
2 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Hooks provided by the LocalGov install profile. | ||
*/ | ||
|
||
/** | ||
* @addtogroup hooks | ||
* @{ | ||
*/ | ||
|
||
/** | ||
* Run a task during the site installation process. | ||
* | ||
* This is intended for work that needs to happen when installing a localgov | ||
* site, that can't happen in a module's hook_install(). This hook is invoked | ||
* later in the install process, when everything bar the importing of | ||
* translations is done. | ||
* | ||
* It can also be used to only run code during a site install, and not when a | ||
* module is installed in an existing site. | ||
*/ | ||
function hook_localgov_post_install(): void { | ||
// Whatever your module needs to do goes here. | ||
} | ||
|
||
/** | ||
* @} End of "addtogroup hooks". | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters