/[drupal]/contributions/modules/uts/uts.node.inc
ViewVC logotype

Diff of /contributions/modules/uts/uts.node.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.38, Thu Jan 15 06:57:34 2009 UTC revision 1.39, Thu Jun 4 01:09:46 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: uts.node.inc,v 1.37 2009/01/15 06:54:29 boombatower Exp $  // $Id: uts.node.inc,v 1.38 2009/01/15 06:57:34 boombatower Exp $
3  /**  /**
4   * @file   * @file
5   * Provide nodeapi implementation.   * Provide nodeapi implementation.
# Line 589  function uts_link($type, $object, $tease Line 589  function uts_link($type, $object, $tease
589          'href' => "admin/uts/tasks/$object->nid/add",          'href' => "admin/uts/tasks/$object->nid/add",
590          'attributes' => array('title' => t('Add a task to this study.'))          'attributes' => array('title' => t('Add a task to this study.'))
591        );        );
592          $links['manage_tasks'] = array(
593            'title' => t('Manage tasks'),
594            'href' => "admin/uts/tasks/$object->nid",
595            'attributes' => array('title' => t('Manage this study\'s tasks.'))
596          );
597          if (uts_session_load_all($object->nid, TRUE)) {
598            $links['analyze_study'] = array(
599              'title' => t('Analyze study'),
600              'href' => "admin/uts/analyze/$object->nid",
601              'attributes' => array('title' => t('Analyze the results of this study.'))
602            );
603          }
604        }
605        else if ($object->type == UTS_TASK) {
606          $links['add_task'] = array(
607            'title' => t('Add task'),
608            'href' => "admin/uts/tasks/$object->study_nid/add",
609            'attributes' => array('title' => t('Add a task to the study.'))
610          );
611          $links['manage_tasks'] = array(
612            'title' => t('Manage tasks'),
613            'href' => "admin/uts/tasks/$object->study_nid",
614            'attributes' => array('title' => t('Manage the study\'s tasks.'))
615          );
616          $links['view_study'] = array(
617            'title' => t('View study'),
618            'href' => "node/$object->study_nid",
619            'attributes' => array('title' => t('View the parent study.'))
620          );
621      }      }
622      else if ($object->type == UTS_ENVIRONMENT) {      else if ($object->type == UTS_ENVIRONMENT) {
623        $links['open_environment'] = array(        $links['open_environment'] = array(

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39

  ViewVC Help
Powered by ViewVC 1.1.2