category($data->{$this->name_alias}); } /** * Override the behavior of title(). Get the user friendly version of the * node type. */ function title() { return $this->category($this->argument); } function category($id) { $output = userpoints_get_categories(); if (empty($output[$id])) { $output = t('Unknown category'); } return check_plain($output[$id]); } }