/[drupal]/contributions/modules/plugin_manager/plugin_manager.module
ViewVC logotype

Diff of /contributions/modules/plugin_manager/plugin_manager.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.51.2.21, Wed Oct 1 01:45:55 2008 UTC revision 1.51.2.22, Wed Oct 1 02:13:38 2008 UTC
# Line 1  Line 1 
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
# Line 23  function plugin_manager_menu() { Line 23  function plugin_manager_menu() {
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.',
# Line 48  function plugin_manager_menu() { Line 32  function plugin_manager_menu() {
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',
# Line 83  function plugin_manager_menu() { Line 82  function plugin_manager_menu() {
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'),
# Line 107  function plugin_manager_menu() { Line 98  function plugin_manager_menu() {
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    
# Line 122  function plugin_manager_help($path, $arg Line 121  function plugin_manager_help($path, $arg
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  }  }

Legend:
Removed from v.1.51.2.21  
changed lines
  Added in v.1.51.2.22

  ViewVC Help
Powered by ViewVC 1.1.2