function coder_upgrade_next_replacement_value in Coder 7
Same name and namespace in other branches
- 7.2 coder_upgrade/conversions/db.inc \coder_upgrade_next_replacement_value()
Replaces values with array of indexed items.
Parameters
array $values: The replacement values.
3 calls to coder_upgrade_next_replacement_value()
- coder_upgrade_parse_insert_query_string in coder_upgrade/
conversions/ db.inc - Replaces D6 database API call with D7 equivalent.
- coder_upgrade_parse_sql_conditions in coder_upgrade/
conversions/ db.inc - Parses sql conditions into conditional object strings.
- coder_upgrade_parse_update_query_string in coder_upgrade/
conversions/ db.inc - Replaces D6 database API call with D7 equivalent.
File
- coder_upgrade/
conversions/ db.inc, line 580 - Provides conversion routines applied to database API function calls and hooks.
Code
function coder_upgrade_next_replacement_value(&$values) {
global $_coder_upgrade_replacement_values_is_array, $_coder_upgrade_replacement_index;
if ($_coder_upgrade_replacement_values_is_array) {
$value = $values[0] . "['{$_coder_upgrade_replacement_index}']";
$_coder_upgrade_replacement_index++;
}
else {
$value = array_shift($values);
}
return $value;
}