function bakery_taste_stroopwafel_cookie in Bakery Single Sign-On System 6.2
Same name and namespace in other branches
- 6 bakery.module \bakery_taste_stroopwafel_cookie()
- 7.2 bakery.module \bakery_taste_stroopwafel_cookie()
Validate update request.
1 string reference to 'bakery_taste_stroopwafel_cookie'
- bakery_menu in ./
bakery.module - Implementation of hook_menu().
File
- ./
bakery.module, line 1132
Code
function bakery_taste_stroopwafel_cookie() {
$type = 'stroopwafel';
if (empty($_POST[$type])) {
return FALSE;
}
if (($payload = bakery_validate_data($_POST[$type], $type)) === FALSE) {
return FALSE;
}
$_SESSION['bakery'] = unserialize($payload['data']);
$_SESSION['bakery']['uid'] = $payload['uid'];
$_SESSION['bakery']['category'] = $payload['category'];
return TRUE;
}