You are here

function andromeda_slideshow_machine_name_exists in Andromeda Slideshow 7

Same name and namespace in other branches
  1. 7.2 andromeda_slideshow.module \andromeda_slideshow_machine_name_exists()

Determines if a slideshow name is in use.

1 call to andromeda_slideshow_machine_name_exists()
andromeda_slideshow_form_validate in includes/andromeda_slideshow.forms.inc
Validate handler for andromeda_slideshow_form
1 string reference to 'andromeda_slideshow_machine_name_exists'
andromeda_slideshow_form in includes/andromeda_slideshow.forms.inc
Add and edit slideshow form

File

./andromeda_slideshow.module, line 357
Slideshow for the Andromeda (http://drupal.org/project/andromeda) Theme

Code

function andromeda_slideshow_machine_name_exists($name) {
  $machine_name_exists = db_query_range('SELECT 1 FROM {slideshows} WHERE name = :name', 0, 1, array(
    ':name' => $name,
  ))
    ->fetchField();
  return $machine_name_exists;
}