You are here

function casetracker_views_user_options in Case Tracker 5

Views filter handler; filter Case Tracker cases by the assigned user.

1 string reference to 'casetracker_views_user_options'
casetracker_views_tables in ./casetracker_views.module
Implementation of hook_views_table().

File

./casetracker_views.module, line 337
Enables Views integration for Case Tracker.

Code

function casetracker_views_user_options() {
  $users = array(
    0 => variable_get('casetracker_default_assign_to', variable_get('anonymous', t('Anonymous'))),
  );
  $results = db_query('SELECT uid, name FROM {users} WHERE status > 0 AND uid > 0');
  while ($result = db_fetch_object($results)) {
    $options[$result->uid] = check_plain($result->name);
  }
  return $options;
}