/[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.3, Sun Feb 1 00:19:52 2009 UTC revision 1.52.2.80.2.4, Sun Feb 1 01:07:09 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: plugin_manager.admin.inc,v 1.52.2.80.2.2 2009/01/31 23:06:16 joshuarogers Exp $  // $Id: plugin_manager.admin.inc,v 1.52.2.80.2.3 2009/02/01 00:19:52 joshuarogers Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 482  function plugin_manager_form(){ Line 482  function plugin_manager_form(){
482    drupal_add_js(array('plugin_manager' => array('ajaxPrefix' => url('admin/build/plugin_manager/'),),), 'setting');    drupal_add_js(array('plugin_manager' => array('ajaxPrefix' => url('admin/build/plugin_manager/'),),), 'setting');
483    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');
484    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');
485    
486      $form[] = array('#value' => '<div id="pm-category-column">',);
487    
488  $form[] = array(    $form[] = array(
489    '#prefix' => '<div class="pm-header">',      '#prefix' => '<div class="pm-header">',
490    '#value' => '<div class="pm-term-header">'. t('Categories:') .'</div><a href="javascript:void(0);" onclick="pm_unclick();"><span class="pm-term-uncheck"></span></a><a href="javascript:void(0);" onclick="javascript:pm_check();"><span class="pm-term-check"></span></a>',      '#value' => '<div class="pm-term-header">'. t('Categories:') .'</div><a href="javascript:void(0);" onclick="pm_unclick();"><span class="pm-term-uncheck"></span></a><a href="javascript:void(0);" onclick="javascript:pm_check();"><span class="pm-term-check"></span></a>',
491    '#suffix' => '</div>',      '#suffix' => '</div>',
492  );    );
493    
 for ($i = 0; $i < 10; $i ++) {  
494    // Get a list of categories.    // Get a list of categories.
495    $result = db_query(    $result = db_query(
496      "SELECT distinct term      "SELECT distinct term
497       FROM {plugin_manager_repo_terms}        FROM {plugin_manager_repo_terms}
498       WHERE term != 'Modules'        WHERE term != 'Modules'
499       ORDER BY term"        ORDER BY term"
500    );    );
501    
502    while ($row = db_fetch_array($result)) {    while ($row = db_fetch_array($result)) {
# Line 505  for ($i = 0; $i < 10; $i ++) { Line 506  for ($i = 0; $i < 10; $i ++) {
506        '#title' => $term,        '#title' => $term,
507        '#name' => 'category',        '#name' => 'category',
508        '#prefix' => '<div class="pm-term-chooser" id="pm-category-'. $term .'">',        '#prefix' => '<div class="pm-term-chooser" id="pm-category-'. $term .'">',
509          '#attributes' => array('onclick' => 'toggle_button($(this));'),
510        '#suffix' => '</div>',        '#suffix' => '</div>',
511          '#default_value' => FALSE,
512      );      );
513    }    }
514  }  
515      $form[] = array('#value' => '</div>',);
516    return $form;    return $form;
517  }  }
518    

Legend:
Removed from v.1.52.2.80.2.3  
changed lines
  Added in v.1.52.2.80.2.4

  ViewVC Help
Powered by ViewVC 1.1.2