/[drupal]/contributions/modules/taxonomy_breadcrumb/taxonomy_breadcrumb.admin.inc
ViewVC logotype

Diff of /contributions/modules/taxonomy_breadcrumb/taxonomy_breadcrumb.admin.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1, Mon Jan 12 02:19:26 2009 UTC revision 1.2, Wed Jan 28 23:44:30 2009 UTC
# Line 1  Line 1 
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
# Line 46  function taxonomy_breadcrumb_admin_setti Line 46  function taxonomy_breadcrumb_admin_setti
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    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.2