function fieldable_panels_panes_services_resources in Fieldable Panels Panes (FPP) 7
Implements hook_services_resources().
File
- ./
fieldable_panels_panes.services.inc, line 11 - Contains callbacks for service resource manipulation.
Code
function fieldable_panels_panes_services_resources() {
return array(
'fieldable_panels_panes' => array(
'operations' => array(
'retrieve' => array(
'help' => t('This method returns a fieldable panels pane.'),
'callback' => 'fieldable_panels_panes_services_retrieve',
'file' => array(
'type' => 'inc',
'module' => 'fieldable_panels_panes',
'name' => 'fieldable_panels_panes.services',
),
'access callback' => 'fieldable_panels_panes_services_access',
'access arguments' => array(
'view',
),
'access arguments append' => TRUE,
'args' => array(
array(
'name' => 'fpid',
'type' => 'int',
'description' => t('The id of the fieldable panels pane to get.'),
'source' => array(
'path' => '0',
),
'optional' => FALSE,
),
array(
'name' => 'vid',
'type' => 'int',
'description' => t('The vid of the fieldable panels pane to get.'),
'source' => array(
'param' => 'vid',
),
'optional' => TRUE,
),
),
),
'create' => array(
'help' => t('This method creates a fieldable panels pane.'),
'callback' => 'fieldable_panels_panes_services_create',
'file' => array(
'type' => 'inc',
'module' => 'fieldable_panels_panes',
'name' => 'fieldable_panels_panes.services',
),
'access callback' => 'fieldable_panels_panes_services_access',
'access arguments' => array(
'create',
),
'access arguments append' => TRUE,
'args' => array(
array(
'name' => 'data',
'type' => 'struct',
'description' => t('An object representing the fieldable panels pane.'),
'source' => 'data',
'optional' => FALSE,
),
),
),
'update' => array(
'help' => t('This method updates a fieldable panels pane.'),
'callback' => 'fieldable_panels_panes_services_update',
'file' => array(
'type' => 'inc',
'module' => 'fieldable_panels_panes',
'name' => 'fieldable_panels_panes.services',
),
'access callback' => 'fieldable_panels_panes_services_access',
'access arguments' => array(
'update',
),
'access arguments append' => TRUE,
'args' => array(
array(
'name' => 'fpid',
'type' => 'int',
'description' => t('The id of the fieldable panels pane to update.'),
'source' => array(
'path' => '0',
),
'optional' => FALSE,
),
array(
'name' => 'data',
'type' => 'struct',
'description' => t('An object representing the fieldable panels pane.'),
'source' => 'data',
'optional' => FALSE,
),
),
),
'delete' => array(
'help' => t('This method deletes a fieldable panels pane.'),
'callback' => 'fieldable_panels_panes_services_delete',
'file' => array(
'type' => 'inc',
'module' => 'fieldable_panels_panes',
'name' => 'fieldable_panels_panes.services',
),
'access callback' => 'fieldable_panels_panes_services_access',
'access arguments' => array(
'delete',
),
'access arguments append' => TRUE,
'args' => array(
array(
'name' => 'fpid',
'type' => 'int',
'description' => t('The id of the fieldable panels pane to delete.'),
'source' => array(
'path' => '0',
),
'optional' => FALSE,
),
),
),
'index' => array(
'help' => t('This method returns a listing of fieldable panels panes.'),
'callback' => 'fieldable_panels_panes_services_index',
'file' => array(
'type' => 'inc',
'module' => 'fieldable_panels_panes',
'name' => 'fieldable_panels_panes.services',
),
'access arguments' => array(
'administer fieldable panels panes',
),
'args' => array(
array(
'name' => 'page',
'optional' => TRUE,
'type' => 'int',
'description' => t('The zero-based index of the page to get, defaults to 0.'),
'default value' => 0,
'source' => array(
'param' => 'page',
),
),
array(
'name' => 'fields',
'optional' => TRUE,
'type' => 'string',
'description' => t('The fields to return.'),
'default value' => '*',
'source' => array(
'param' => 'fields',
),
),
array(
'name' => 'parameters',
'optional' => TRUE,
'type' => 'array',
'description' => t('Fields an values to filter the list by.'),
'default value' => array(),
'source' => array(
'param' => 'parameters',
),
),
array(
'name' => 'pagesize',
'optional' => TRUE,
'type' => 'int',
'description' => t('Number of records to get per page.'),
'default value' => 20,
'source' => array(
'param' => 'pagesize',
),
),
array(
'name' => 'options',
'optional' => TRUE,
'type' => 'array',
'description' => 'Additional query options.',
'default value' => array(
'orderby' => array(
'created' => 'DESC',
),
),
'source' => array(
'param' => 'options',
),
),
),
),
),
),
);
}