| 1 |
<?php |
<?php |
| 2 |
// $Id: $ |
// $Id: taxonomy_breadcrumb.admin.inc,v 1.1 2009/01/12 02:19:26 mgn Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 46 |
'#weight' => 10, |
'#weight' => 10, |
| 47 |
); |
); |
| 48 |
|
|
| 49 |
// Get all of the node types enabled. |
$tb_types = (array) variable_get('taxonomy_breadcrumb_node_types', TAXONOMY_BREADCRUMB_NODE_TYPES_DEFAULT); |
| 50 |
$node_bases = array(); |
$default = array(); |
| 51 |
$node_types = node_get_types(); |
foreach ($tb_types as $index => $value) { |
| 52 |
foreach ($node_types as $node_type) { |
if ($value) { |
| 53 |
$node_bases[] = $node_type->type; |
$default[] = $index; |
| 54 |
|
} |
| 55 |
} |
} |
| 56 |
|
|
| 57 |
$form['advanced']['taxonomy_breadcrumb_node_types'] = array( |
$form['advanced']['taxonomy_breadcrumb_node_types'] = array( |
| 58 |
'#type' => 'textfield', |
'#type' => 'checkboxes', |
| 59 |
|
'#multiple' => TRUE, |
| 60 |
'#title' => t('Node types to include or exclude'), |
'#title' => t('Node types to include or exclude'), |
| 61 |
'#default_value' => variable_get('taxonomy_breadcrumb_node_types', TAXONOMY_BREADCRUMB_NODE_TYPES_DEFAULT), |
'#default_value' => $default, |
| 62 |
'#description' => t('Enter a list of node types to include or exclude applying taxonomy based breadcrumbs to. Separate multiple values with spaces. <p>Node types currently enabled:') .'<ul><li>'. implode($node_bases, '</li><li>') .'</li></ul></p>', |
'#options' => array_map('check_plain', node_get_types('names')), |
| 63 |
|
'#description' => t('A list of node types to include or exclude applying taxonomy based breadcrumbs to.'), |
| 64 |
'#weight' => 20, |
'#weight' => 20, |
| 65 |
); |
); |
| 66 |
|
|