### Eclipse Workspace Patch 1.0
#P Belle Helen
Index: public_html/sites/all/modules/services/resources/file_resource.inc
===================================================================
--- public_html/sites/all/modules/services/resources/file_resource.inc (revision 4)
+++ public_html/sites/all/modules/services/resources/file_resource.inc (working copy)
@@ -13,9 +13,8 @@
function _file_resource_definition() {
return array(
'file' => array(
-
- 'file' => array('type' => 'inc', 'module' => 'services', 'name' => 'resources/file_resource'),
'create' => array(
+ 'file' => array('type' => 'inc', 'module' => 'services', 'name' => 'resources/file_resource'),
'help' => 'Creates a file',
'callback' => '_file_resource_create',
'access callback' => '_file_resource_access',
@@ -33,6 +32,7 @@
),

'retrieve' => array(
+ 'file' => array('type' => 'inc', 'module' => 'services', 'name' => 'resources/file_resource'),
'help' => 'Retrieves a file',
'callback' => '_file_resource_retrieve',
'access callback' => '_file_resource_access',
@@ -58,6 +58,7 @@
),

'delete' => array(
+ 'file' => array('type' => 'inc', 'module' => 'services', 'name' => 'resources/file_resource'),
'help' => 'Deletes a file',
'callback' => '_file_resource_delete',
'access callback' => '_file_resource_access',

Comments

ygerasimov’s picture

Status: Active » Postponed (maintainer needs more info)

@likin Could you please explain what particular the problem is?

Anonymous’s picture

The problem was that I could not use the "file resources".
In logs I've found that
the function _file_resource_access is not defined.
I've discovered the file resource module.

I've found that the file indifications are not decleared in right way as it's done in "node resources"

ygerasimov’s picture

Priority: Critical » Normal
Status: Postponed (maintainer needs more info) » Closed (fixed)

@likin Please checkout the latest version from git. I think this bug has been fixed already. Please advise if I am wrong.

The tests for file resource are already in git for 7.x and they test file resource so it should work.