entity_type; // if (!node_access('update', $node)) { if (!workflow_tab_access($entity_type, $node)) { return; } $this->options['alter']['make_link'] = TRUE; $this->options['alter']['path'] = "node/$node->nid/workflow"; // @todo: add support for other entity types. $this->options['alter']['query'] = drupal_get_destination(); $text = !empty($this->options['text']) ? $this->options['text'] : t('change state'); return $text; } }