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

Determine if the machine name is in use.

4 string references to 'quicktabs_machine_name_exists'
QuicktabAddForm::form dans src/Form/QuicktabAddForm.php
QuicktabCloneForm::form dans src/Form/QuicktabCloneForm.php
QuicktabEditForm::form dans src/Form/QuicktabEditForm.php
_quicktabs_admin_main_form dans ./quicktabs.admin.inc
The main section of admin page.

Fichier

./quicktabs.module, line 464

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