domain_batch_data_type

Versions
domain
domain_batch_data_type($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().

Code

./domain.admin.inc, line 1030

<?php
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;
}
?>

Contact

  • agentrickard [at] gmail [dot] com

Donations

My Amazon.com Wish List