function _pm_attibute_domain_options in Drupal PM (Project Management) 7
Returns list of distinct attribute domains.
File
- ./
pm.admin.inc, line 596 - List functions for the Project Management module.
Code
function _pm_attibute_domain_options() {
static $options;
if (!$options) {
$query = db_select('pmattribute', 'att')
->fields('att', array(
'domain',
))
->distinct()
->orderBy('domain', 'ASC');
$result = $query
->execute();
$options = array();
foreach ($result as $d) {
$options[$d->domain_name] = $d->domain;
}
}
return $options;
}