function accessibility_get_test_by_machine_name

cis7 accessibility.module accessibility_get_test_by_machine_name($name)
cle7 accessibility.module accessibility_get_test_by_machine_name($name)
elmsmedia7 accessibility.module accessibility_get_test_by_machine_name($name)
icor7 accessibility.module accessibility_get_test_by_machine_name($name)
meedjum_blog7 accessibility.module accessibility_get_test_by_machine_name($name)
mooc7 accessibility.module accessibility_get_test_by_machine_name($name)

Returns the test ID for a given machine name.

2 calls to accessibility_get_test_by_machine_name()
accessibility_test_features_export_render in sites/all/modules/ulmus/accessibility/accessibility.features.inc
Implements hook[component]_features_export_render().
accessibility_test_features_rebuild in sites/all/modules/ulmus/accessibility/accessibility.features.inc
Implements hook[component]_features_rebuild().

File

sites/all/modules/ulmus/accessibility/accessibility.module, line 783

Code

function accessibility_get_test_by_machine_name($name) {
  $id = db_select('accessibility_test', 'a')->fields('a', array('test_id'))->condition('quail_name', $name)->execute()->fetchField();
  return (int) $id;
}