You are here

function quicktabs_machine_name_exists in Quick Tabs 7.3

Determine if the machine name is in use.

1 string reference to 'quicktabs_machine_name_exists'
_quicktabs_admin_main_form in ./quicktabs.admin.inc
The main section of admin page.

File

./quicktabs.module, line 527

Code

function quicktabs_machine_name_exists($machine_name) {
  $qt_exists = db_query_range('SELECT 1 FROM {quicktabs} WHERE machine_name = :name', 0, 1, array(
    ':name' => $machine_name,
  ))
    ->fetchField();
  return $qt_exists;
}