You are here

function coder_upgrade_selections_extract in Coder 7

Same name and namespace in other branches
  1. 7.2 coder_upgrade/includes/conversion.inc \coder_upgrade_selections_extract()

Returns a list of submitted values.

Parameters

array $values: Array slice from $form_state['values'].

Return value

array Array of submitted values.

2 calls to coder_upgrade_selections_extract()
coder_upgrade_conversions_form_validate in coder_upgrade/includes/conversion.inc
Validation handler for the module conversion form.
coder_upgrade_selections in coder_upgrade/includes/conversion.inc
Returns all submitted values.

File

coder_upgrade/includes/conversion.inc, line 489

Code

function coder_upgrade_selections_extract($values) {
  $selections = array();
  foreach ($values as $key => $value) {
    if ($value) {
      $selections[$key] = $key;
    }
  }
  return $selections;
}