Comments

JacobSingh’s picture

StatusFileSize
new2.65 KB
JacobSingh’s picture

Before it would go to , now it goes to admin/content/file if you are an admin and if you are not. Also a cleanup to use array_keys on the $files variable.

effulgentsia’s picture

Status: Needs review » Reviewed & tested by the community

Looks good.

+++ b/file_entity.admin.inc
@@ -16,7 +16,8 @@ function file_entity_admin_files($form, &$form_state) {
+    $files = array_keys(array_filter($form_state['values']['files']));
+    return call_user_func_array($operation['callback'], array($files));

As a separate issue, I'd like this variable renamed to $fids, and for $operation['callback arguments'] to be added, but no need to hold this up on that.

JacobSingh’s picture

Status: Reviewed & tested by the community » Closed (fixed)

fiskt!