function UpdateTestFileTransfer::getSettingsForm

Returns a settings form with a text field to input a username.

File

modules/update/tests/update_test.module, line 174

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.