| 1 |
<?php |
<?php |
| 2 |
// $Id: indexpage.admin.inc,v 1.1.2.1 2009/05/21 15:39:49 nancyw Exp $ |
// $Id: indexpage.admin.inc,v 1.1.2.2 2009/05/21 18:00:03 nancyw Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 38 |
'#description' => t('This option determines how many items will show on the results page before a pager is added. It also makes term list fieldsets collapse when there are more that this many terms in the list.'), |
'#description' => t('This option determines how many items will show on the results page before a pager is added. It also makes term list fieldsets collapse when there are more that this many terms in the list.'), |
| 39 |
); |
); |
| 40 |
|
|
| 41 |
|
$form['general']['indexpage_show_users'] = array( |
| 42 |
|
'#type' => 'radios', |
| 43 |
|
'#options' => $yesno, |
| 44 |
|
'#prefix' => '<div class="indexpage-radios">', |
| 45 |
|
'#suffix' => '</div>', |
| 46 |
|
'#title' => t('Show users who have submitted this content'), |
| 47 |
|
'#default_value' => (int) variable_get('indexpage_show_users', FALSE), |
| 48 |
|
'#description' => t('If this option is selected, an additional section with user names will be shown.'), |
| 49 |
|
); |
| 50 |
|
|
| 51 |
$form['general']['indexpage_suppress_unused'] = array( |
$form['general']['indexpage_suppress_unused'] = array( |
| 52 |
'#type' => 'radios', |
'#type' => 'radios', |
| 53 |
'#options' => $yesno, |
'#options' => $yesno, |
| 54 |
'#prefix' => '<div class="indexpage-radios">', |
'#prefix' => '<div class="indexpage-radios">', |
| 55 |
'#suffix' => '</div>', |
'#suffix' => '</div>', |
| 56 |
'#title' => t('Suppress unused taxonomy terms'), |
'#title' => t('Suppress unused taxonomy terms'), |
| 57 |
'#default_value' => variable_get('indexpage_suppress_unused', FALSE), |
'#default_value' => (int) variable_get('indexpage_suppress_unused', FALSE), |
| 58 |
'#description' => t('If this option is selected, terms with no associated nodes will not be shown.'), |
'#description' => t('If this option is selected, terms with no associated nodes will not be shown.'), |
| 59 |
); |
); |
| 60 |
|
|
| 64 |
'#prefix' => '<div class="indexpage-radios">', |
'#prefix' => '<div class="indexpage-radios">', |
| 65 |
'#suffix' => '</div>', |
'#suffix' => '</div>', |
| 66 |
'#title' => t("Use the node's teaser as the link title"), |
'#title' => t("Use the node's teaser as the link title"), |
| 67 |
'#default_value' => variable_get('indexpage_teaser_tooltip', TRUE), |
'#default_value' => (int) variable_get('indexpage_teaser_tooltip', TRUE), |
| 68 |
'#description' => t('If this option is selected, the teaser for the node will be used for the link title (tooltip).'), |
'#description' => t('If this option is selected, the teaser for the node will be used for the link title (tooltip).'), |
| 69 |
); |
); |
| 70 |
|
|
| 74 |
'#prefix' => '<div class="indexpage-radios">', |
'#prefix' => '<div class="indexpage-radios">', |
| 75 |
'#suffix' => '</div>', |
'#suffix' => '</div>', |
| 76 |
'#title' => t('Show counts'), |
'#title' => t('Show counts'), |
| 77 |
'#default_value' => variable_get('indexpage_show_count', TRUE), |
'#default_value' => (int) variable_get('indexpage_show_count', TRUE), |
| 78 |
'#description' => t('Shows a count of how many nodes there are and how many are used by each term.'), |
'#description' => t('Shows a count of how many nodes there are and how many are used by each term.'), |
| 79 |
); |
); |
| 80 |
|
|
| 84 |
'#prefix' => '<div class="indexpage-radios">', |
'#prefix' => '<div class="indexpage-radios">', |
| 85 |
'#suffix' => '</div>', |
'#suffix' => '</div>', |
| 86 |
'#title' => t('Show untagged'), |
'#title' => t('Show untagged'), |
| 87 |
'#default_value' => variable_get('indexpage_show_untagged', TRUE), |
'#default_value' => (int) variable_get('indexpage_show_untagged', TRUE), |
| 88 |
'#description' => t('Shows a count of how many nodes that have no taxonomy term associated.'), |
'#description' => t('Shows a count of how many nodes that have no taxonomy term associated.'), |
| 89 |
); |
); |
| 90 |
|
|
| 94 |
'#prefix' => '<div class="indexpage-radios">', |
'#prefix' => '<div class="indexpage-radios">', |
| 95 |
'#suffix' => '</div>', |
'#suffix' => '</div>', |
| 96 |
'#title' => t('Show term description'), |
'#title' => t('Show term description'), |
| 97 |
'#default_value' => variable_get('indexpage_show_description', FALSE), |
'#default_value' => (int) variable_get('indexpage_show_description', FALSE), |
| 98 |
'#description' => t('Shows the description for the term in the term list.'), |
'#description' => t('Shows the description for the term in the term list.'), |
| 99 |
); |
); |
| 100 |
|
|