You are here

function qtip_machine_name_exists in qTip (Stylish jQuery Tooltips) 7.2

Determine if the machine name is in use.

1 string reference to 'qtip_machine_name_exists'
qtip_configure_instance_form in includes/forms/qtip.admin.inc
Callback function for admin/config/user-interface/qtip

File

./qtip.module, line 589

Code

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