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

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

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

revision 1.4, Sun May 31 10:16:11 2009 UTC revision 1.5, Wed Aug 5 04:52:53 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: category.admin.inc,v 1.3 2009/02/07 09:01:16 jaza Exp $  // $Id: category.admin.inc,v 1.4 2009/05/31 10:16:11 jaza Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 114  function category_overview_containers_su Line 114  function category_overview_containers_su
114   */   */
115  function theme_category_overview_containers($form) {  function theme_category_overview_containers($form) {
116    $rows = array();    $rows = array();
117    
118      $cols = 4;
119      if (variable_get('category_container_hierarchy', 0) > 0) {
120        $cols++;
121      }
122    
123    foreach (element_children($form) as $key) {    foreach (element_children($form) as $key) {
124      if (isset($form[$key]['name'])) {      if (isset($form[$key]['name'])) {
125        $container = &$form[$key];        $container = &$form[$key];
# Line 121  function theme_category_overview_contain Line 127  function theme_category_overview_contain
127        $row = array();        $row = array();
128        $row[] = drupal_render($container['name']);        $row[] = drupal_render($container['name']);
129        $row[] = drupal_render($container['types']);        $row[] = drupal_render($container['types']);
       $cols = 4;  
130        if (variable_get('category_container_hierarchy', 0) > 0) {        if (variable_get('category_container_hierarchy', 0) > 0) {
131          $row[] = drupal_render($container['parents']);          $row[] = drupal_render($container['parents']);
         $cols++;  
132        }        }
133        if (isset($form['submit'])) {        if (isset($form['submit'])) {
134          $container['weight']['#attributes']['class'] = 'container-weight';          $container['weight']['#attributes']['class'] = 'container-weight';
# Line 742  function category_add_category_page($cni Line 746  function category_add_category_page($cni
746  function category_wrapper_admin_page() {  function category_wrapper_admin_page() {
747    $book_status = category_get_wrapper_status('book');    $book_status = category_get_wrapper_status('book');
748    $taxonomy_status = category_get_wrapper_status('taxonomy');    $taxonomy_status = category_get_wrapper_status('taxonomy');
   $menu_status = category_get_wrapper_status('menu');  
749    $form['book_wrapper'] = array(    $form['book_wrapper'] = array(
750      '#type' => 'item',      '#type' => 'item',
751      '#title' => t('Book wrapper status'),      '#title' => t('Book wrapper status'),
# Line 753  function category_wrapper_admin_page() { Line 756  function category_wrapper_admin_page() {
756      '#title' => t('Taxonomy wrapper status'),      '#title' => t('Taxonomy wrapper status'),
757      '#value' => theme('category_wrapper_status', 'taxonomy', $taxonomy_status),      '#value' => theme('category_wrapper_status', 'taxonomy', $taxonomy_status),
758    );    );
   $form['menu_wrapper'] = array(  
     '#type' => 'item',  
     '#title' => t('Menu wrapper status'),  
     '#value' => theme('category_wrapper_status', 'menu', $menu_status),  
   );  
759    
760    return $form;    return $form;
761  }  }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.2