Add collection labels to api

This commit is contained in:
Romain Neutron
2013-06-13 16:15:38 +02:00
parent 626e8df75b
commit d2a50f31b0
2 changed files with 12 additions and 1 deletions

View File

@@ -2019,7 +2019,13 @@ class API_V1_adapter extends API_V1_Abstract
$ret = array(
'base_id' => $collection->get_base_id(),
'collection_id' => $collection->get_coll_id(),
'name' => $collection->get_label($this->app['locale.I18n']),
'name' => $collection->get_name(),
'labels' => array(
'fr' => $collection->get_label('fr'),
'en' => $collection->get_label('en'),
'de' => $collection->get_label('de'),
'nl' => $collection->get_label('nl'),
),
'record_amount' => $collection->get_record_amount(),
);