You are here

tft_opigno.module in Taxonomy File Tree 7.2

Hook implementations for TFT Opigno.

File

modules/tft_opigno/tft_opigno.module
View source
<?php

/**
 * @file
 * Hook implementations for TFT Opigno.
 */

/**
 * Implements hook_opigno_tool().
 */
function tft_opigno_opigno_tool($node = NULL) {
  return array(
    'tft' => array(
      'name' => t("Files"),
      'path' => isset($node) ? "node/{$node->nid}/tft" : '',
      'description' => t("Files related to the course."),
      'actions' => array(
        'add_file' => array(
          'title' => t("Upload a new file"),
          'href' => 'node/add/tft-file',
          'access_arguments' => array(
            'node',
            $node->nid,
            'create tft_file content',
          ),
          'access_callback' => 'og_user_access',
          'query' => array(
            'og_group_ref' => isset($node) ? $node->nid : '',
          ),
        ),
      ),
    ),
  );
}

Functions

Namesort descending Description
tft_opigno_opigno_tool Implements hook_opigno_tool().