| 1 |
<?php |
<?php |
| 2 |
// $Id: plugin_manager.admin.inc,v 1.52.2.31 2008/10/01 01:15:47 jabapyth Exp $ |
// $Id: plugin_manager.admin.inc,v 1.52.2.32 2008/10/01 01:45:55 jabapyth Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 82 |
|
|
| 83 |
function plugin_manager_modules_redirect(){ |
function plugin_manager_modules_redirect(){ |
| 84 |
drupal_set_message("Search for the modules you want to install, add them to your queue, and then install them."); |
drupal_set_message("Search for the modules you want to install, add them to your queue, and then install them."); |
| 85 |
drupal_goto('admin/plugin_manager/search'); |
drupal_goto('admin/plugin_manager/install/search'); |
| 86 |
} |
} |
| 87 |
|
|
| 88 |
function plugin_manager_themes_redirect(){ |
function plugin_manager_themes_redirect(){ |
| 89 |
drupal_set_message("Search for the themes you want to install, add them to your queue, and then install them."); |
drupal_set_message("Search for the themes you want to install, add them to your queue, and then install them."); |
| 90 |
drupal_goto('admin/plugin_manager/search'); |
drupal_goto('admin/plugin_manager/install/search'); |
| 91 |
} |
} |
| 92 |
|
|
| 93 |
/** |
/** |
| 101 |
plugin_manager_reload(); |
plugin_manager_reload(); |
| 102 |
|
|
| 103 |
// Get the category that provided. |
// Get the category that provided. |
| 104 |
$category = drupal_substr($_GET['q'], drupal_strlen("admin/plugin_manager/browse/")); |
$category = drupal_substr($_GET['q'], drupal_strlen("admin/plugin_manager/install/browse/")); |
| 105 |
|
|
| 106 |
// Get a list of queued changes. |
// Get a list of queued changes. |
| 107 |
$queue = variable_get("plugin_manager_queue", array()); |
$queue = variable_get("plugin_manager_queue", array()); |
| 123 |
|
|
| 124 |
while ($row = db_fetch_array($result)) { |
while ($row = db_fetch_array($result)) { |
| 125 |
$form['categories'][] = array( |
$form['categories'][] = array( |
| 126 |
'#value' => l($row['tag'], "admin/plugin_manager/browse/". $row['tag']) ."<br />", |
'#value' => l($row['tag'], "admin/plugin_manager/install/browse/". $row['tag']) ."<br />", |
| 127 |
); |
); |
| 128 |
} |
} |
| 129 |
|
|