mirror of
https://github.com/farmOS/farmOS.git
synced 2024-02-23 11:37:38 +01:00
Add an api_version property to /farm.json.
This commit is contained in:
parent
2a98a288ee
commit
30710d5d9a
1 changed files with 3 additions and 0 deletions
|
@ -5,6 +5,8 @@
|
|||
* Farm API module.
|
||||
*/
|
||||
|
||||
define('FARM_API_VERSION', '1.0');
|
||||
|
||||
/**
|
||||
* Implements hook_permission().
|
||||
*/
|
||||
|
@ -40,6 +42,7 @@ function farm_api_info() {
|
|||
$info = array(
|
||||
'name' => $conf['site_name'],
|
||||
'url' => $base_url,
|
||||
'api_version' => FARM_API_VERSION,
|
||||
);
|
||||
if (!empty($user->uid)) {
|
||||
$info['user'] = array(
|
||||
|
|
Loading…
Reference in a new issue