You are here

function node_convert_machine_name_check in Node Convert 7

Callback to check if an existing machine name for a template exists.

1 string reference to 'node_convert_machine_name_check'
node_convert_add_template in ./node_convert.admin.inc
Add template page callback.

File

./node_convert.module, line 513

Code

function node_convert_machine_name_check($machine_name) {
  $query = db_select(NODE_CONVERT_TEMPLATE_TABLE, 'n');
  $query
    ->addField('n', 'nctid');
  $query
    ->condition('machine_name', $machine_name);
  $template = $query
    ->execute()
    ->fetchAssoc();
  return $template;
}