public function SettingsForm::rebuildPass in Opigno Moxtra 8
Same name and namespace in other branches
- 3.x src/Form/SettingsForm.php \Drupal\opigno_moxtra\Form\SettingsForm::rebuildPass()
Rebuild moxtra client secret field.
File
- src/
Form/ SettingsForm.php, line 226
Class
- SettingsForm
- Implements the Opigno Moxtra settings form.
Namespace
Drupal\opigno_moxtra\FormCode
public function rebuildPass($field, $form) {
$default_value = isset($form['#default_value']) ? $form['#default_value'] : NULL;
$field = $field
->__toString();
$field = str_replace('type="password"', 'type="password" value="' . $default_value . '" ', $field);
return $field;
}