You are here

function s3_create_subdir in Filebrowser 7.3

Same name and namespace in other branches
  1. 7.4 modules/s3_fb.module \s3_create_subdir()

@function Creates a .. file since this is not available in a s3 system.

Parameters

$nid integer Node id for which this FileBrowser is created:

$fs_root string The root for this directory:

Return value

array

1 call to s3_create_subdir()
_filebrowser_load_files in ./filebrowser.common.inc

File

modules/s3_fb.module, line 51

Code

function s3_create_subdir($nid, $fs_root) {
  return array(
    'nid' => $nid,
    'display-name' => '..',
    'relative-path' => '/',
    'full-path' => $fs_root,
    'status' => MARK_READ,
    'kind' => 2,
    'mime-type' => 'folder/parent',
    'url' => url('node/' . $nid, array(
      'absolute' => TRUE,
    )),
  );
}