public function UpdateTestFileTransfer::getSettingsForm
7.x update_test.module | public UpdateTestFileTransfer::getSettingsForm() |
Returns a settings form with a text field to input a username.
File
- drupal-7.x/
modules/ update/ tests/ update_test.module, line 173 - Module for testing Update Manager functionality.
Class
- UpdateTestFileTransfer
- Mocks a FileTransfer object to test the settings form functionality.
Code
public function getSettingsForm() {
$form = array();
$form['udpate_test_username'] = array(
'#type' => 'textfield',
'#title' => t('Update Test Username'),
);
return $form;
}