function 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 modules/
contact/ contact.test - Deletes all categories.
- ContactSitewideTestCase::testSiteWideContact in modules/
contact/ contact.test - Tests configuration options and the site-wide contact form.
File
-
modules/
contact/ contact.test, line 292
Class
- ContactSitewideTestCase
- Tests the site-wide contact form.
Code
function getCategories() {
$categories = db_query('SELECT cid FROM {contact}')->fetchCol();
return $categories;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.