function domain_batch_data_type in Domain Access 5
Same name and namespace in other branches
- 6.2 domain.admin.inc \domain_batch_data_type()
Converts a data type into a sql-safe string.
Parameters
$type: The data type defined in hook_domainbatch().
Return value
A sql-safe string ('%s', %d, %f, %b) for use with db_query().
1 call to domain_batch_data_type()
- domain_batch_form_submit in ./
domain_admin.inc - FormsAPI
File
- ./
domain_admin.inc, line 1019 - Administration functions for the domain module.
Code
function domain_batch_data_type($type) {
$return = "'%s'";
switch ($type) {
case 'string':
break;
case 'integer':
$return = "%d";
break;
case 'float':
$return = "%f";
break;
case 'binary':
$return = "%b";
break;
}
return $return;
}