XOOPS  2.6.0
userconfigs.php
Go to the documentation of this file.
1 <?php
2 /*
3  You may not change or alter any portion of this comment or credits
4  of supporting developers from this source code or any supporting source code
5  which is considered copyrighted (c) material of the original comment or credit authors.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10  */
11 
20 {
21 
30  public function categories()
31  {
32  return array();
33  }
34 
46  public function configs()
47  {
48  $i = 0;
49  $configs[$i]['name'] = 'com_mode';
50  $configs[$i]['title'] = '_MI_COMMENTS_MODE';
51  $configs[$i]['description'] = '_MI_COMMENTS_MODEDSC';
52  $configs[$i]['formtype'] = 'select';
53  $configs[$i]['valuetype'] = 'text';
54  $configs[$i]['options'] = array('XoopsLocale::NESTED' => 'nest', 'XoopsLocale::FLAT' => 'flat', 'XoopsLocale::THREADED' => 'thread');
55  $configs[$i]['default'] = 'flat';
56 
57  ++$i;
58  $configs[$i]['name'] = 'com_order';
59  $configs[$i]['title'] = '_MI_COMMENTS_ORDER';
60  $configs[$i]['description'] = '_MI_COMMENTS_ORDERDSC';
61  $configs[$i]['formtype'] = 'select';
62  $configs[$i]['valuetype'] = 'int';
63  $configs[$i]['options'] = array('XoopsLocale::OLDEST_FIRST' => 0, 'XoopsLocale::NEWEST_FIRST' => 1);
64  $configs[$i]['default'] = 0;
65  return $configs;
66  }
67 }
$i
Definition: dialog.php:68
$configs
Definition: config.php:27