Created
June 3, 2012 04:55
-
-
Save chx/2861969 to your computer and use it in GitHub Desktop.
config presave
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
function presave() { | |
module_invoke_all('config_presave', $this); | |
$hook = 'config_presave'; | |
$part = strtok($this->name, '.'); | |
do { | |
$hook .= '_' . $part; | |
module_invoke_all($hook, $this); | |
} while ($part = strtok('.')); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment