public function BotchaRecipe::getSecret in BOTCHA Spam Prevention 7.3
Same name and namespace in other branches
- 6.2 controller/botcha_recipe.controller.inc \BotchaRecipe::getSecret()
- 6.3 controller/recipe/botcha.recipe.controller.inc \BotchaRecipe::getSecret()
- 7.2 controller/botcha_recipe.controller.inc \BotchaRecipe::getSecret()
1 call to BotchaRecipe::getSecret()
- BotchaRecipe::prepare in controller/
recipe/ botcha.recipe.controller.inc
File
- controller/
recipe/ botcha.recipe.controller.inc, line 142 - Controller layer of the BotchaRecipe objects.
Class
- BotchaRecipe
- Abstract class to describe recipe data structure.
Code
public function getSecret($build_id = NULL) {
if (empty($this->secret) || !empty($build_id)) {
$this->secret = md5($build_id . BOTCHA_SECRET);
}
return $this->secret;
}