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

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

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

revision 1.52.2.80.2.5, Sun Feb 1 01:55:18 2009 UTC revision 1.52.2.80.2.6, Sun Feb 1 04:31:17 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: plugin_manager.admin.inc,v 1.52.2.80.2.4 2009/02/01 01:07:09 joshuarogers Exp $  // $Id: plugin_manager.admin.inc,v 1.52.2.80.2.5 2009/02/01 01:55:18 joshuarogers Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 15  function plugin_manager_form(){ Line 15  function plugin_manager_form(){
15    drupal_add_js(drupal_get_path("module", "plugin_manager") ."/plugin_manager_search.js", 'module');    drupal_add_js(drupal_get_path("module", "plugin_manager") ."/plugin_manager_search.js", 'module');
16    drupal_add_css(drupal_get_path("module", "plugin_manager") ."/plugin_manager_search.css", 'module');    drupal_add_css(drupal_get_path("module", "plugin_manager") ."/plugin_manager_search.css", 'module');
17    
18      $form[] = array('#value' => '<div id="pm-container">',);
19    
20      // Statr of category column
21    $form[] = array('#value' => '<div id="pm-category-column">',);    $form[] = array('#value' => '<div id="pm-category-column">',);
   
22    $form[] = array(    $form[] = array(
23      '#prefix' => '<div class="pm-header">',      '#prefix' => '<div class="pm-header">',
24      '#value' => '<div class="pm-term-header">'. t('Categories:') .'</div><a href="javascript:void(0);" id="clickall" onclick="pm_unclick();"><span class="pm-term-uncheck"></span></a><a href="javascript:pm_check_all();"><span class="pm-term-check"></span></a>',      '#value' => '<span id="pm-title">'. t('Categories:') .'</span><a href="javascript:void(0);" id="clickall" onclick="pm_unclick();"><span class="pm-uncheck-all"></span></a><a href="javascript:pm_check_all();"><span class="pm-check-all"></span></a>',
25      '#suffix' => '</div>',      '#suffix' => '</div>',
26    );    );
27    
28    // Get a list of categories.    // Get a list of categories.
29    $result = db_query(    $result = db_query("SELECT distinct term FROM {plugin_manager_repo_terms} WHERE term != 'Modules' ORDER BY term");
     "SELECT distinct term  
       FROM {plugin_manager_repo_terms}  
       WHERE term != 'Modules'  
       ORDER BY term"  
   );  
30    while ($row = db_fetch_array($result)) {    while ($row = db_fetch_array($result)) {
31      $term = $row['term'];      $term = $row['term'];
32      $form[] = array(      $form[] = array(
33        '#type' => 'checkbox',        '#type' => 'checkbox',
34        '#title' => $term,        '#title' => $term,
35        '#name' => 'category',        '#name' => 'category',
36        '#prefix' => '<div class="pm-term-chooser" id="pm-category-'. $term .'">',        '#prefix' => '<div class="pm-category">',
37        '#attributes' => array('onclick' => 'toggle_button($(this));'),        '#attributes' => array('onclick' => 'pm_toggle_button($(this));'),
38        '#suffix' => '</div>',        '#suffix' => '</div>',
       '#default_value' => FALSE,  
39      );      );
40    }    }
   
   // Start the second column.  
41    $form[] = array('#value' => '</div>',);    $form[] = array('#value' => '</div>',);
42    
43      // Start the content column column.
44    $form[] = array('#value' => '<div id="pm-content-column">',);    $form[] = array('#value' => '<div id="pm-content-column">',);
45    $form[] = array(    $form[] = array('#value' => '<div class="pm-header"><a href="javascript:pm_toggle_view();"><span class="pm-view-summary" id="pm-view"></span></a></div>',);
     '#prefix' => '<div class="pm-header">',  
     '#value' => '<div class="pm-content-header">H</div>',  
     '#suffix' => '</div>',  
   );  
46    $form[] = array('#value' => '</div>',);    $form[] = array('#value' => '</div>',);
47    
48      // End of the container
49      $form[] = array('#value' => '</div>',);
50    return $form;    return $form;
51  }  }
52    

Legend:
Removed from v.1.52.2.80.2.5  
changed lines
  Added in v.1.52.2.80.2.6

  ViewVC Help
Powered by ViewVC 1.1.2