Merge pull request #393 from romainneutron/collection-labels-api

[3.8] Add collection labels to api
This commit is contained in:
Romain Neutron
2013-06-14 00:44:51 -07:00
2 changed files with 12 additions and 1 deletions

View File

@@ -2026,7 +2026,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(),
);