Remove "recent files" from Drupal FileDepot module

How can I prevent Drupal "FileDepot" module from displaying "recent files" when the user first logs into the file store?

Is it possible for it to display anything until the user clicks on the folder?

+3


source to share


1 answer


In sites/all/modules/filedepot/lib-ajaxserver.php

I added 1=2 and

to sql, you can test it with the original one. it worked for me



// Default view - latest files
if (!empty($filedepot->allowableViewFoldersSql)) {
  if ($filedepot->ogmode_enabled) {
    if (!empty($filedepot->allowableGroupViewFoldersSql)) {
      $sql .= "WHERE 1=2 and file.cid in ({$filedepot->allowableGroupViewFoldersSql}) ";
    }
    else {
      $sql .= "WHERE 1=2 and file.cid in ({$filedepot->allowableViewFoldersSql}) ";
    }
  }
  elseif (!user_access('administer filedepot', $user)) {
    if (empty($filedepot->allowableViewFoldersSql)) {
      $sql .= "WHERE 1=2 and file.cid is NULL ";
    }
    else {
      $sql .= "WHERE 1=2 and file.cid in ({$filedepot->allowableViewFoldersSql}) ";
    }
  }
}

      

+2


source







All Articles