function rules_admin_form_unpack_storage in Rules 6
Puts the variables out of storage on their usual place. Invoked through #after_build, which is set by rules_admin_form_pack_storage().
1 string reference to 'rules_admin_form_unpack_storage'
- rules_admin_form_pack_storage in rules_admin/
rules_admin.rule_forms.inc - Use this function when there should be a further step. It puts all variables needed into the form storage
File
- rules_admin/
rules_admin.rule_forms.inc, line 416
Code
function rules_admin_form_unpack_storage($form, &$form_state) {
if (!isset($form_state['unpacked'])) {
foreach (array(
'proxy',
'step',
'element',
'parent_id',
) as $key) {
if (isset($form_state['storage'][$key]) && !isset($form_state[$key])) {
$form_state[$key] =& $form_state['storage'][$key];
}
}
$form_state['unpacked'] = TRUE;
}
return $form;
}