| 1 |
<?php |
<?php |
| 2 |
// $Id: plugin_manager.module,v 1.51.2.17 2008/09/25 20:32:55 jabapyth Exp $ |
// $Id: plugin_manager.module,v 1.51.2.18 2008/09/28 15:03:48 joshuarogers Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 83 |
'file' => 'plugin_manager.admin.inc', |
'file' => 'plugin_manager.admin.inc', |
| 84 |
'block callback' => 'system_admin_theme_settings', |
'block callback' => 'system_admin_theme_settings', |
| 85 |
); |
); |
| 86 |
|
$items['admin/plugin_manager/manual'] = array( |
| 87 |
|
'title' => 'Manual Install', |
| 88 |
|
'page callback' => 'drupal_get_form', |
| 89 |
|
'page arguments' => array('plugin_manager_manual'), |
| 90 |
|
'access arguments' => array('manual install plugins'), |
| 91 |
|
'file' => 'plugin_manager.admin.inc', |
| 92 |
|
'type' => MENU_CALLBACK, |
| 93 |
|
); |
| 94 |
return $items; |
return $items; |
| 95 |
} |
} |
| 96 |
|
|
| 106 |
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>'; |
| 107 |
case 'admin/plugin_manager/uninstall': |
case 'admin/plugin_manager/uninstall': |
| 108 |
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>'; |
| 109 |
|
case 'admin/plugin_manager/manual': |
| 110 |
|
return '<p>' .t('This is for manual installation of plugins') .'</p>'; |
| 111 |
} |
} |
| 112 |
} |
} |
| 113 |
|
|
| 115 |
* Implementation of hook_perm(). |
* Implementation of hook_perm(). |
| 116 |
*/ |
*/ |
| 117 |
function plugin_manager_perm() { |
function plugin_manager_perm() { |
| 118 |
return array('install plugins', 'plugin manager settings', 'uninstall plugins'); |
return array('manual install plugins', 'install plugins', 'plugin manager settings', 'uninstall plugins'); |
| 119 |
} |
} |
| 120 |
|
|
| 121 |
/** |
/** |