| 1 |
<?php |
<?php |
| 2 |
// $Id: taxonomy_theme_admin.inc,v 1.8.2.1 2007/02/25 16:49:08 profix898 Exp $ |
// $Id: taxonomy_theme_admin.inc,v 1.8.2.2 2007/05/08 17:18:20 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'); |
| 341 |
'#collapsed' => FALSE, |
'#collapsed' => FALSE, |
| 342 |
); |
); |
| 343 |
if (variable_get('taxonomy_theme_extended_enable', 0)) { |
if (variable_get('taxonomy_theme_extended_enable', 0)) { |
| 344 |
$form['taxonomy_theme_extended']['help'] = array('#value' => t('<p>To assign a theme for a particular path enter the path into according textarea.<br />Enter one path per line as Drupal paths (or path aliases). Character \'*\' is a wildcard for any string, character \'%\' is a wildcard for any nonempty string not containing a forward slash (\'/\'), and character \'#\' is a wildcard for any nonempty string consisting of digits only.<br /><i>Adding \'node/6\' to the \'bluemarine\' field will assign bluemarine theme to node 6.</i></p>')); |
$form['taxonomy_theme_extended']['help'] = array('#value' => t('<p>To assign a theme for a particular path enter the |
| 345 |
|
path into according textarea.<br />Enter one path per line as Drupal paths |
| 346 |
|
(or path aliases). Character \'*\' is a wildcard for any string, character |
| 347 |
|
\'%\' is a wildcard for any nonempty string not containing a forward slash |
| 348 |
|
(\'/\'), and character \'#\' is a wildcard for any nonempty string consisting |
| 349 |
|
of digits only. Dont use this feature to select an admin theme (with |
| 350 |
|
\'admin/*\'). Use the \'Administration Theme\' option (admin/settings/admin) |
| 351 |
|
of Drupal for this instead.</p><p><i>Adding \'node/6\' to the \'bluemarine\' |
| 352 |
|
field will assign bluemarine theme to node 6.</i></p>')); |
| 353 |
$form['taxonomy_theme_extended']['theme_paths'] = array('#tree' => TRUE); |
$form['taxonomy_theme_extended']['theme_paths'] = array('#tree' => TRUE); |
| 354 |
$options_admin_themes = _taxonomy_theme_options(TRUE, FALSE); |
$options_admin_themes = _taxonomy_theme_options(TRUE, FALSE); |
| 355 |
foreach($options_admin_themes as $themex) { |
foreach($options_admin_themes as $themex) { |