| 1 |
<?php |
<?php |
| 2 |
// $Id: plugin_manager.module,v 1.51.2.20 2008/10/01 01:43:41 jabapyth Exp $ |
// $Id: plugin_manager.module,v 1.51.2.21 2008/10/01 01:45:55 jabapyth Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 23 |
'position' => 'right', |
'position' => 'right', |
| 24 |
'weight' => -7, |
'weight' => -7, |
| 25 |
); |
); |
|
$items['admin/plugin_manager/ajax'] = array( |
|
|
'title' => 'AJAX Callback', |
|
|
'description' => 'Browse through the themes and modules available for installation.', |
|
|
'page callback' => 'plugin_manager_ajax_callback', |
|
|
'access arguments' => array('install plugins'), |
|
|
'type' => MENU_CALLBACK, |
|
|
); |
|
|
$items['admin/plugin_manager/browse'] = array( |
|
|
'title' => 'Browse', |
|
|
'description' => 'Browse through the themes and modules available for installation.', |
|
|
'page callback' => 'drupal_get_form', |
|
|
'page arguments' => array('plugin_manager_browse_form'), |
|
|
'access arguments' => array('install plugins'), |
|
|
'file' => 'plugin_manager.admin.inc', |
|
|
'block callback' => 'system_admin_theme_settings', |
|
|
); |
|
| 26 |
$items['admin/plugin_manager/install'] = array( |
$items['admin/plugin_manager/install'] = array( |
| 27 |
'title' => 'Install', |
'title' => 'Install', |
| 28 |
'description' => 'Install the themes and modules that have been selected.', |
'description' => 'Install the themes and modules that have been selected.', |
| 32 |
'file' => 'plugin_manager.admin.inc', |
'file' => 'plugin_manager.admin.inc', |
| 33 |
'block callback' => 'system_admin_theme_settings', |
'block callback' => 'system_admin_theme_settings', |
| 34 |
); |
); |
| 35 |
$items['admin/plugin_manager/search'] = array( |
$items['admin/plugin_manager/install/search'] = array( |
| 36 |
'title' => 'Search', |
'title' => 'Search', |
| 37 |
'description' => 'Search for new themes and modules to queue for installation.', |
'description' => 'Search for new themes and modules to queue for installation.', |
| 38 |
'page callback' => 'plugin_manager_search', |
'page callback' => 'plugin_manager_search', |
| 39 |
'access arguments' => array('install plugins'), |
'access arguments' => array('install plugins'), |
| 40 |
'file' => 'plugin_manager.admin.inc', |
'file' => 'plugin_manager.admin.inc', |
| 41 |
'block callback' => 'system_admin_theme_settings', |
'type' => MENU_LOCAL_TASK, |
| 42 |
); |
); |
| 43 |
$items['admin/plugin_manager/settings'] = array( |
$items['admin/plugin_manager/install/search/ajax'] = array( |
| 44 |
'title' => 'Settings', |
'title' => 'AJAX Callback', |
| 45 |
'description' => 'Control the way that the Plugin Manager operates.', |
'description' => 'Browse through the themes and modules available for installation.', |
| 46 |
|
'page callback' => 'plugin_manager_ajax_callback', |
| 47 |
|
'access arguments' => array('install plugins'), |
| 48 |
|
'type' => MENU_CALLBACK, |
| 49 |
|
); |
| 50 |
|
$items['admin/plugin_manager/install/browse'] = array( |
| 51 |
|
'title' => 'Browse', |
| 52 |
|
'description' => 'Browse through the themes and modules available for installation.', |
| 53 |
'page callback' => 'drupal_get_form', |
'page callback' => 'drupal_get_form', |
| 54 |
'page arguments' => array('plugin_manager_settings_form'), |
'page arguments' => array('plugin_manager_browse_form'), |
| 55 |
'access arguments' => array('plugin manager settings'), |
'access arguments' => array('install plugins'), |
| 56 |
'file' => 'plugin_manager.admin.inc', |
'file' => 'plugin_manager.admin.inc', |
| 57 |
'block callback' => 'system_admin_theme_settings', |
'type' => MENU_LOCAL_TASK, |
| 58 |
|
); |
| 59 |
|
$items['admin/plugin_manager/install/manual'] = array( |
| 60 |
|
'title' => 'Manual Install', |
| 61 |
|
'page callback' => 'drupal_get_form', |
| 62 |
|
'page arguments' => array('plugin_manager_manual'), |
| 63 |
|
'access arguments' => array('manual install plugins'), |
| 64 |
|
'file' => 'plugin_manager.admin.inc', |
| 65 |
|
'type' => MENU_CALLBACK, |
| 66 |
); |
); |
| 67 |
$items['admin/plugin_manager/uninstall'] = array( |
$items['admin/plugin_manager/uninstall'] = array( |
| 68 |
'title' => 'Uninstall', |
'title' => 'Uninstall', |
| 82 |
'file' => 'plugin_manager.admin.inc', |
'file' => 'plugin_manager.admin.inc', |
| 83 |
'block callback' => 'system_admin_theme_settings', |
'block callback' => 'system_admin_theme_settings', |
| 84 |
); |
); |
|
$items['admin/plugin_manager/manual'] = array( |
|
|
'title' => 'Manual Install', |
|
|
'page callback' => 'drupal_get_form', |
|
|
'page arguments' => array('plugin_manager_manual'), |
|
|
'access arguments' => array('manual install plugins'), |
|
|
'file' => 'plugin_manager.admin.inc', |
|
|
'type' => MENU_CALLBACK, |
|
|
); |
|
| 85 |
$items['admin/build/modules/install'] = array( |
$items['admin/build/modules/install'] = array( |
| 86 |
'title' => 'Install', |
'title' => 'Install', |
| 87 |
'access arguments' => array('install plugins'), |
'access arguments' => array('install plugins'), |
| 98 |
'weight' => 9, |
'weight' => 9, |
| 99 |
'type' => MENU_LOCAL_TASK, |
'type' => MENU_LOCAL_TASK, |
| 100 |
); |
); |
| 101 |
|
$items['admin/settings/plugin_manager'] = array( |
| 102 |
|
'title' => 'Plugin Manager Settings', |
| 103 |
|
'description' => 'Control the way that the Plugin Manager operates.', |
| 104 |
|
'page callback' => 'drupal_get_form', |
| 105 |
|
'page arguments' => array('plugin_manager_settings_form'), |
| 106 |
|
'access arguments' => array('plugin manager settings'), |
| 107 |
|
'file' => 'plugin_manager.admin.inc', |
| 108 |
|
); |
| 109 |
return $items; |
return $items; |
| 110 |
} |
} |
| 111 |
|
|
| 121 |
return '<p><strong>'. t('Note: the more items you select, the longer the installation will take, potentially causing it to time out.') .'</strong></p>'; |
return '<p><strong>'. t('Note: the more items you select, the longer the installation will take, potentially causing it to time out.') .'</strong></p>'; |
| 122 |
case 'admin/plugin_manager/uninstall': |
case 'admin/plugin_manager/uninstall': |
| 123 |
return '<p>'. t('This will only show plugins that are currently disabled and that were installed using the plugin manager. ') . l(t('(Disable modules here)'), 'admin/build/modules') .'</p>'; |
return '<p>'. t('This will only show plugins that are currently disabled and that were installed using the plugin manager. ') . l(t('(Disable modules here)'), 'admin/build/modules') .'</p>'; |
| 124 |
case 'admin/plugin_manager/manual': |
case 'admin/plugin_manager/install/manual': |
| 125 |
return '<p>' .t('This is for manual installation of plugins') .'</p>'; |
return '<p>' .t('This is for manual installation of plugins') .'</p>'; |
| 126 |
} |
} |
| 127 |
} |
} |