You are here

function tft_block_view in Taxonomy File Tree 7

Same name and namespace in other branches
  1. 7.2 tft.module \tft_block_view()

File

./tft.module, line 209
Module hooks.

Code

function tft_block_view() {
  $tid = 0;
  if (arg(0) == 'node' && is_numeric(arg(1))) {
    $tid = tft_get_og_tid(arg(1));
  }
  return array(
    'subject' => 'File explorer',
    'content' => theme('tft_folder_explorer', array(
      'folders' => tft_output_tree(tft_folder_tree($tid)),
      'vid' => variable_get('tft_vocabulary_vid', 0),
    )),
  );
}