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;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.