function hostingService_db_mysql::form in Hostmaster (Aegir) 6
Overrides hostingService::form
File
- modules/
hosting/ 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' => $this->db_passwd ? FALSE : $this->available,
'#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,
);
}