You are here

function _filebrowser_get_path in Filebrowser 6.2

Helper function to get node folder with correct token replacements. Never use $node->folder_path directly !!!

Parameters

$node:

Return value

folder path

5 calls to _filebrowser_get_path()
filebrowser_form_delete_confirm_submit in ./filebrowser.module
File delete confirmation form submit
filebrowser_page_download in includes/downloads.inc
Callback for filebrowser_download/%node menu.
filebrowser_public_download_url in includes/downloads.inc
filebrowser_validate in ./filebrowser.module
Implementation of hook_validate().
_filebrowser_load_files in includes/filesystem.inc
Load data from current path.

File

includes/filesystem.inc, line 31

Code

function _filebrowser_get_path(&$node) {
  $result = $node->folder_path;
  if (module_exists("token")) {
    $result = token_replace($result, $type = 'node', $node, $leading = '[', $trailing = ']');
  }
  return $result;
}