status_map = array('0' => t('pending'), '1' => t('approved')); } function render($values) { return isset($this->status_map[$values->{$this->table . '_approved'}]) ? $this->status_map[$values->{$this->table . '_approved'}] : t('unknown'); } }