function domain_batch_data_type in Domain Access 6.2
Same name and namespace in other branches
- 5 domain_admin.inc \domain_batch_data_type()
Converts a data type indicator 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 for saving batch form actions.
File
- ./
domain.admin.inc, line 1046 - 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;
}