function hostingService_db_mysql::form in Hosting 6.2
Same name and namespace in other branches
- 7.4 db_server/hosting_db_server.service.inc \hostingService_db_mysql::form()
- 7.3 db_server/hosting_db_server.service.inc \hostingService_db_mysql::form()
Overrides hostingService::form
File
- db_server/
hosting_db_server.service.inc, line 25 - Provide the hosting serivce classes for database integration.
Class
- hostingService_db_mysql
- A MySQL specific db service implementation class.
Code
function form(&$form) {
parent::form($form);
$form['db_user'] = array(
'#type' => 'textfield',
'#required' => $this->available,
'#title' => t('Username'),
'#description' => t('The user that will be used to create new mysql users and databases for new sites.'),
'#size' => 40,
'#default_value' => $this->db_user,
'#maxlength' => 64,
'#weight' => 5,
);
if ($this->db_passwd) {
$passwd_description = t('<strong>You have already set a password for this database server.</strong><br />');
}
$form['db_passwd'] = array(
'#type' => 'password_confirm',
'#required' => FALSE,
'#description' => $passwd_description . t('The password for the user that will be used to create new mysql users and databases for new sites'),
'#size' => 30,
'#weight' => 10,
);
}