You are here

function elfinder_cmd_permissions in elFinder file manager 7

Same name and namespace in other branches
  1. 8.2 elfinder.module \elfinder_cmd_permissions()
  2. 6.2 elfinder.module \elfinder_cmd_permissions()
  3. 6 elfinder.module \elfinder_cmd_permissions()
  4. 7.3 elfinder.module \elfinder_cmd_permissions()
  5. 7.2 elfinder.module \elfinder_cmd_permissions()

elFider commandsto permissions assignment

1 call to elfinder_cmd_permissions()
elfinder_filesystemconnector in ./elfinder.module
File browser to filesystem php connector callback

File

./elfinder.module, line 444

Code

function elfinder_cmd_permissions() {
  $perm = array(
    'create new directories' => 'mkdir',
    'create new files' => 'mkfile',
    'rename files and directories' => 'rename',
    'file uploads' => 'upload',
    'paste from clipboard' => 'paste',
    'delete files and directories' => 'rm',
    'duplicate files' => 'duplicate',
    'edit files' => 'edit',
    'add files to archive' => 'archive',
    'extract files from archive' => 'extract',
    'resize images' => 'resize',
  );
  $newcperms = module_invoke_all('elfinder_cmd_perms', $perm);
  return $newcperms ? $newcperms : $perm;
}