workflow_states($data->{$this->name_alias}); } /** * Override the behavior of title(). Get the user-friendly version of the * workflow state. */ function title() { return $this->workflow_states($this->argument); } function workflow_states($sid) { if (empty($sid)) { return t('No state'); } static $states; if (!isset($states)) { $states = workflow_get_states(); } $output = $states[$sid]; if (empty($output)) { $output = t('No state'); } return check_plain($output); } }