| 1 |
<?php |
<?php |
| 2 |
// $Id: taxonomy_theme_admin.inc,v 1.8.2.2 2007/05/08 17:18:20 profix898 Exp $ |
// $Id: taxonomy_theme_admin.inc,v 1.8.2.3 2007/07/09 16:45:21 profix898 Exp $ |
| 3 |
|
|
| 4 |
require_once (drupal_get_path('module', 'taxonomy_theme').'/taxonomy_theme_paths.inc'); |
require_once (drupal_get_path('module', 'taxonomy_theme').'/taxonomy_theme_paths.inc'); |
| 5 |
require_once (drupal_get_path('module', 'taxonomy_theme').'/taxonomy_theme_taxonomy.inc'); |
require_once (drupal_get_path('module', 'taxonomy_theme').'/taxonomy_theme_taxonomy.inc'); |
| 233 |
$rows = array(); |
$rows = array(); |
| 234 |
$form['taxonomy_theme_select'][$vocab->vid] = array( |
$form['taxonomy_theme_select'][$vocab->vid] = array( |
| 235 |
'#type' => 'fieldset', |
'#type' => 'fieldset', |
| 236 |
'#title' => t('Vocabulary: ').$vocab->name, |
'#title' => t('Vocabulary: @vocab-name', array('@vocab-name' => $vocab->name)), |
| 237 |
'#collapsible' => TRUE, |
'#collapsible' => TRUE, |
| 238 |
'#collapsed' => TRUE, |
'#collapsed' => TRUE, |
| 239 |
); |
); |
| 394 |
$form['table']['type'] = array('#value' => 'taxonomy_theme_'.$data['method']['type'].'|'); |
$form['table']['type'] = array('#value' => 'taxonomy_theme_'.$data['method']['type'].'|'); |
| 395 |
foreach ($data['data'] as $item) { |
foreach ($data['data'] as $item) { |
| 396 |
$template_item = variable_get('taxonomy_theme_'.$data['method']['type'].'|'.$item->$data['key'], ''); |
$template_item = variable_get('taxonomy_theme_'.$data['method']['type'].'|'.$item->$data['key'], ''); |
| 397 |
$form['table'][$item->$data['key']]['title'] = array('#value' => $item->name); |
$form['table'][$item->$data['key']]['title'] = array('#value' => check_plain($item->name)); |
| 398 |
$form['table'][$item->$data['key']]['taxonomy_theme_'.$data['method']['type'].'|'.$item->$data['key']] = array( |
$form['table'][$item->$data['key']]['taxonomy_theme_'.$data['method']['type'].'|'.$item->$data['key']] = array( |
| 399 |
'#type' => 'select', |
'#type' => 'select', |
| 400 |
'#default_value' => $template_item, |
'#default_value' => $template_item, |