1 contact.test ContactSitewideTestCase::getCategories()

Gets a list of all category IDs.

Return value

array: A list of the category IDs.

File

core/modules/contact/tests/contact.test, line 312
Tests for the Contact module.

Class

ContactSitewideTestCase
Tests the site-wide contact form.

Code

function getCategories() {
  $config_data = contact_config_data();
  $categories = $config_data['categories'];
  foreach ($categories as $cat) {
    $cids[] = $cat['cid'];
  }
  return $cids;
}