Gets a list of all category IDs.
array A list of the category IDs.
function getCategories() { $categories = db_query('SELECT cid FROM {contact}') ->fetchCol(); return $categories; }