public function TacjsSettings::cleanValues in TacJS 8
Same name and namespace in other branches
- 8.2 src/TacjsSettings.php \Drupal\tacjs\TacjsSettings::cleanValues()
Clean value : remove item is not necessary.
Parameters
mixed $formvalues: Variable contains all config.
Return value
mixed return clean variable withour submit,form_id...
1 call to TacjsSettings::cleanValues()
- TacjsSettings::serializeValuesForm in src/
TacjsSettings.php - Serialize Form values.
File
- src/
TacjsSettings.php, line 325
Class
- TacjsSettings
- Class TacjsSettings.
Namespace
Drupal\tacjsCode
public function cleanValues($formvalues) {
if (isset($formvalues['submit'])) {
unset($formvalues['submit']);
}
if (isset($formvalues['form_build_id'])) {
unset($formvalues['form_build_id']);
}
if (isset($formvalues['form_token'])) {
unset($formvalues['form_token']);
}
if (isset($formvalues['form_id'])) {
unset($formvalues['form_id']);
}
if (isset($formvalues['op'])) {
unset($formvalues['op']);
}
return $formvalues;
}