function update_test_filetransfer_info
Same name in other branches
- 9 core/modules/update/tests/modules/update_test/update_test.module \update_test_filetransfer_info()
- 8.9.x core/modules/update/tests/modules/update_test/update_test.module \update_test_filetransfer_info()
- 10 core/modules/update/tests/modules/update_test/update_test.module \update_test_filetransfer_info()
- 11.x core/modules/update/tests/modules/update_test/update_test.module \update_test_filetransfer_info()
Implements hook_filetransfer_info().
File
-
modules/
update/ tests/ update_test.module, line 140
Code
function update_test_filetransfer_info() {
// Define a mock file transfer method, to ensure that there will always be
// at least one method available in the user interface (regardless of the
// environment in which the update manager tests are run).
return array(
'system_test' => array(
'title' => t('Update Test FileTransfer'),
// This should be in an .inc file, but for testing purposes, it is OK to
// leave it in the main module file.
'file' => 'update_test.module',
'class' => 'UpdateTestFileTransfer',
'weight' => -20,
),
);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.