1<?php
2// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project
3//
4// All Rights Reserved. See copyright.txt for details and a complete list of authors.
5// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
6// $Id$
7
8function prefs_categorypath_list()
9{
10	return [
11		'categorypath_excluded' => [
12			'name' => tra('Exclude these category IDs'),
13			'description' => tra('Category path won\'t appear for these category IDs.'),
14			'separator' => ',',
15			'type' => 'text',
16			'size' => '15',
17			'profile_reference' => 'category',
18			'default' => [''], //empty string needed to keep preference from setting unexpectedly
19		],
20		'categorypath_format' => [
21			'name' => tr('Category path format'),
22			'description' => tr('Alter how the category path will be rendered.'),
23			'type' => 'list',
24			'default' => 'link_when_visible',
25			'options' => [
26				'link_when_visible' => tr('Links to the category when the category is visible'),
27				'text_when_visible' => tr('Text label when the category is visible'),
28				'link_or_text' => tr('Link when visible, text label otherwise'),
29				'always_text' => tr('Always display the category path labels'),
30			],
31		],
32	];
33}
34