services_raw.module in Services Client 7
Same filename and directory in other branches
Services Raw module provides alternative for saving different Drupal objects like nodes or users using direct API functiona calls instead of saving / updating objects with drupal_form_execute function.
This module can be potential security risk, its intended to be used only for trusted users.
File
services_raw/services_raw.moduleView source
<?php
/**
* @file
* Services Raw module provides alternative for saving different Drupal objects
* like nodes or users using direct API functiona calls instead of saving / updating
* objects with drupal_form_execute function.
*
* This module can be potential security risk, its intended to be used only for
* trusted users.
*/
/**
* Implements hook_permission().
*/
function services_raw_permission() {
return array(
'access raw node_save' => array(
'title' => t('Access raw node_save function'),
'description' => t('Allows access to raw node_save API call via services.'),
),
'access raw user_save' => array(
'title' => t('Access raw user_save function'),
'description' => t('Allows access to raw user_save API call via services.'),
),
'access raw field save/update' => array(
'title' => t('Access raw field save/update function'),
'description' => t('Allows access to raw field save/update API call via services.'),
),
);
}
/**
* Implements services_resources().
*/
function services_raw_services_resources() {
module_load_include('inc', 'services_raw');
return _services_raw_services_resources();
}
Functions
Name | Description |
---|---|
services_raw_permission | Implements hook_permission(). |
services_raw_services_resources | Implements services_resources(). |