diff --git a/resources/node_resource.inc b/resources/node_resource.inc index eeac2cc..188ef0c 100644 --- a/resources/node_resource.inc +++ b/resources/node_resource.inc @@ -112,7 +112,7 @@ function _node_resource_definition() { * Returns the results of a node_load() for the specified node. * * This returned node may optionally take content_permissions settings into - * account, based on a configuration setting. + * account, based on a configuration setting. * * @param $nid * NID of the node we want to return. @@ -262,14 +262,14 @@ function _node_resource_delete($nid) { * @param $page * Page number of results to return (in pages of 20). * @param $fields - * The fields you want returned. + * The fields you want returned. * @param $parameters * An array of fields and values used to build a sql WHERE clause indicating * what items should be deleted. * @return * An array of node objects. * - * @todo + * @todo * Evaluate the functionality here in general. Particularly around * - Do we need fields at all? Should this just return full nodes? * - Is there an easier syntax we can define which can make the urls @@ -284,10 +284,10 @@ function _node_resource_index($page = 0, $fields = '*', $parameters = array()) { // Limit to published nodes if user doesn't have 'administer nodes' // permissions. - if (!user_access('administer nodes')) { + if (!user_access('administer nodes')) { $parameters['status'] = 1; } - + // Build an array of fields with the appropriate placeholders for use in // db_query(). foreach ($parameters as $field => $value) { diff --git a/services.module b/services.module index a69183e..e1c8975 100644 --- a/services.module +++ b/services.module @@ -37,7 +37,7 @@ function services_perm() { 'save file information', // System resource permissions 'get a system variable', - 'set a system varaible', + 'set a system variable', ); } @@ -148,10 +148,10 @@ function services_menu() { } /** - * Access callback that always returns TRUE. + * Access callback that always returns TRUE. * - * This callback is necessary for services like login and logout that should - * always be wide open and accessible. + * This callback is necessary for services like login and logout that should + * always be wide open and accessible. * * *** USE THIS WITH GREAT CAUTION *** * @@ -422,8 +422,8 @@ function services_controllers_list($endpoint) { $controllers[] = $resource_name . '.' . $op; } } - - // Handle extended operatios + + // Handle extended operations foreach ($ops as $op) { if (isset($res[$op])) { foreach ($res[$op] as $name => $def) { @@ -452,10 +452,10 @@ function services_controller_get($name, $endpoint) { if (isset($resources[$resource_name])) { $res = $resources[$resource_name]; - + if (isset($res[$method])) { return $res[$method]; - } + } else { // Handle extended operatios foreach ($ops as $op) { diff --git a/services.services.api.php b/services.services.api.php index 5326f56..e01411a 100644 --- a/services.services.api.php +++ b/services.services.api.php @@ -16,7 +16,7 @@ * ways Services can be seen as an abstraction layer on top of hook_menu(). * * @return - * An associative array which defines available resources. + * An associative array which defines available resources. * * The associative array which defines services has six possible top * level keys: @@ -30,14 +30,14 @@ * * The first four (the CRUD functions) define the indvidual service * callbacks for each function. However 'actions' and 'targeted actions' - * can contain multiple callbacks. + * can contain multiple callbacks. * - * For those familiar with Services 2.x, these callbacks are created + * For those familiar with Services 2.x, these callbacks are created * similarly, but the keys have changed around a bit. The following keys * are used to describe a callback. * * - help: Text describing what this callback does. - * - callback: The name of a function to call when this resource is + * - callback: The name of a function to call when this resource is * requested. * - access callback: The name of a function to call to check whether * the requesting user has permission to access this resource. If not @@ -56,8 +56,8 @@ * - description: Text describing this argument's usage. * - optional: A boolean indicating whether or not this argument is optional. * - source: Where this argument should be retrieved from. This can be - * 'data' (indicating the POST data), 'params' (indicating the query - * string) or 'path' (indicating the url path). In the case of path, + * 'data' (indicating the POST data), 'params' (indicating the query + * string) or 'path' (indicating the url path). In the case of path, * an additional parameter must be passed indicating the index to be used. */ function hook_services_resources() { @@ -111,5 +111,6 @@ function hook_services_resources() { ), ), ), - ); + ), +); } \ No newline at end of file