function registration_views_set_state_action in Entity Registration 7
Same name and namespace in other branches
- 8.2 modules/registration_views/registration_views.module \registration_views_set_state_action()
- 8 modules/registration_views/registration_views.module \registration_views_set_state_action()
- 7.2 modules/registration_views/registration_views.module \registration_views_set_state_action()
The actual action to set a Registration's State.
File
- modules/
registration_views/ registration_views.module, line 131 - Entity Registration Views integration
Code
function registration_views_set_state_action(&$node, $context) {
$context['registration']->state = $context['new_state'];
registration_save($context['registration']);
}