You are here

state_flow_handler_field_workflow_link.inc in State Machine 7.3

Legacy Views handler. This might be removed.

File

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

/**
 * @file
 * Legacy Views handler. This might be removed.
 */

/**
 * Views field handler to display a link to the workflow page for the node.
 *
 * @todo, this handler is currently not referenced in state_flow.views.inc
 */
class state_flow_handler_field_workflow_link extends views_handler_field {

  /**
   * {@inheritdoc}
   */
  public function query() {

    // Override this method.
  }

  /**
   * {@inheritdoc}
   */
  public 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.