function ContactSitewideTestCase::getCategories
7.x contact.test | ContactSitewideTestCase::getCategories() |
Gets a list of all category IDs.
Return value
array A list of the category IDs.
2 calls to ContactSitewideTestCase::getCategories()
- ContactSitewideTestCase::deleteCategories in drupal-7.x/
modules/ contact/ contact.test - Deletes all categories.
- ContactSitewideTestCase::testSiteWideContact in drupal-7.x/
modules/ contact/ contact.test - Tests configuration options and the site-wide contact form.
File
- drupal-7.x/
modules/ contact/ contact.test, line 292 - Tests for the Contact module.
Class
- ContactSitewideTestCase
- Tests the site-wide contact form.
Code
function getCategories() {
$categories = db_query('SELECT cid FROM {contact}')->fetchCol();
return $categories;
}