You are here

state_flow_handler_field_workflow_link.inc in State Machine 7

File

modules/state_flow/includes/views/state_flow_handler_field_workflow_link.inc
View source
<?php

/**
 * Views field handler to display a link to the workflow page for the node.
 */
class state_flow_handler_field_workflow_link extends views_handler_field {
  function query() {

    // Override this method.
  }
  function render($values) {
    if (($node = node_load($values->nid)) && state_flow_menu_node_access($node)) {
      return l(t('Workflow'), 'node/' . $values->nid . '/workflow');
    }
  }

}

Classes

Namesort descending Description
state_flow_handler_field_workflow_link Views field handler to display a link to the workflow page for the node.