function s3_create_subdir in Filebrowser 7.4
Same name and namespace in other branches
- 7.3 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()
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,
)),
);
}