You are here

function workflow_handler_filter_sid in Workflow 5.2

Same name and namespace in other branches
  1. 5 workflow.module \workflow_handler_filter_sid()

Handler to provide a list of workflow states for the filter list.

1 string reference to 'workflow_handler_filter_sid'
workflow_views_tables in ./workflow.module
Implementation of hook_views_tables()

File

./workflow.module, line 2105

Code

function workflow_handler_filter_sid() {
  $result = db_query("SELECT sid, state FROM {workflow_states} ORDER BY weight, state");
  while ($data = db_fetch_object($result)) {
    $states[$data->sid] = check_plain(t($data->state));
  }
  return $states;
}