| 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 |
| 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)) { |
| 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 |
|
|