You are here

function _key_move_form_state_storage in Key 7.3

Moves storage variables from one form state to another.

Parameters

array $from: The form state to move from.

array $to: The form state to move to.

2 calls to _key_move_form_state_storage()
key_config_form_submit in includes/key.admin.inc
Form submission handler for key_config_form().
key_config_form_validate in includes/key.admin.inc
Form validate handler for key_config_form().

File

includes/key.admin.inc, line 744
Administrative functionality for managing key configurations.

Code

function _key_move_form_state_storage($from, &$to) {
  foreach ($from['storage'] as $index => $value) {
    $to['storage'][$index] = $value;
  }
}