1 |
7dbec6b0
|
Assos Assos
|
<?php
|
2 |
|
|
|
3 |
|
|
/**
|
4 |
|
|
* Implements hook_services_resources().
|
5 |
|
|
*/
|
6 |
|
|
function recovery_pass_services_resources() {
|
7 |
|
|
$resources = array(
|
8 |
|
|
'recovery_pass' => array(
|
9 |
|
|
'operations' => array(
|
10 |
|
|
'retrieve' => array(
|
11 |
|
|
'help' => 'Request a new password, given a e-mail address',
|
12 |
|
|
'file' => array(
|
13 |
|
|
'type' => 'inc',
|
14 |
|
|
'module' => 'recovery_pass',
|
15 |
|
|
'name' => 'recovery_pass.resource',
|
16 |
|
|
),
|
17 |
|
|
'callback' => '_recovery_pass_request_new_password',
|
18 |
|
|
'args' => array(
|
19 |
|
|
array(
|
20 |
|
|
'name' => 'user',
|
21 |
|
|
'type' => 'string',
|
22 |
|
|
'description' => 'The username to request new password for.',
|
23 |
|
|
'source' => array('path' => 0),
|
24 |
|
|
'optional' => FALSE,
|
25 |
|
|
),
|
26 |
|
|
),
|
27 |
|
|
'access callback' => '_recovery_pass_resource_access',
|
28 |
|
|
),
|
29 |
|
|
),
|
30 |
|
|
),
|
31 |
|
|
);
|
32 |
|
|
return $resources;
|
33 |
|
|
} |