Same name in other branches
  1. 8.x-1.x quicktabs.module \quicktabs_machine_name_exists()

Determine if the machine name is in use.

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

Fichier

./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;
}