| | |
| | | 'errmsg'=> 'ip_address_error_empty'), |
| | | ), |
| | | 'default' => '', |
| | | /* |
| | | 'datasource' => array ( 'type' => 'SQL', |
| | | 'querystring' => "SELECT ip_address FROM openvz_ip WHERE reserved = 'n' AND (vm_id = 0 or vm_id = '{RECORDID}') ORDER BY ip_address", |
| | | 'keyfield'=> 'ip_address', |
| | | 'valuefield'=> 'ip_address' |
| | | ), |
| | | 'value' => '', |
| | | 'searchable' => 2 |
| | | */ |
| | | 'value' => '' |
| | | ), |
| | | 'hostname' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | | 'filters' => array( 0 => array( 'event' => 'SAVE', |
| | | 'type' => 'IDNTOASCII'), |
| | | 1 => array( 'event' => 'SHOW', |
| | | 'type' => 'IDNTOUTF8'), |
| | | 2 => array( 'event' => 'SAVE', |
| | | 'type' => 'TOLOWER') |
| | | ), |
| | | 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', |
| | | 'errmsg'=> 'hostname_error_empty'), |
| | | ), |