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

Contents of /contributions/modules/upgrade_status/upgrade_status.module

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


Revision 1.11 - (show annotations) (download) (as text)
Sun Aug 2 14:15:55 2009 UTC (3 months, 3 weeks ago) by sun
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +3 -11 lines
File MIME type: text/x-php
#297335 follow-up by sun: Fixed left over coding style issues.
1 <?php
2 // $Id: upgrade_status.module,v 1.10 2009/08/02 01:36:45 sun Exp $
3
4 /**
5 * @file
6 * Checks to see if your installed modules are available for the next major
7 * release of Drupal.
8 */
9
10 /**
11 * Implementation of hook_help().
12 */
13 function upgrade_status_help($path, $arg) {
14 switch ($path) {
15 case 'admin/help#module':
16 $file = drupal_get_path('module', 'upgrade_status') .'/README.txt';
17 if (file_exists($file)) {
18 return _filter_autop(file_get_contents($file));
19 }
20 break;
21 }
22 }
23
24 /**
25 * Implementation of hook_menu().
26 */
27 function upgrade_status_menu() {
28 $items['admin/reports/updates/upgrade'] = array(
29 'title' => 'Upgrade status',
30 'page callback' => 'upgrade_status_status',
31 'access arguments' => array('administer site configuration'),
32 'type' => MENU_LOCAL_TASK,
33 'weight' => 10,
34 'file' => 'upgrade_status.admin.inc'
35 );
36 $items['admin/reports/updates/upgrade/check'] = array(
37 'page callback' => 'upgrade_status_manual_status',
38 'access arguments' => array('administer site configuration'),
39 'type' => MENU_CALLBACK,
40 'file' => 'upgrade_status.admin.inc'
41 );
42 return $items;
43 }
44
45 /**
46 * Implementation of hook_theme().
47 */
48 function upgrade_status_theme() {
49 return array(
50 'upgrade_status_report' => array(
51 'arguments' => array('data' => NULL),
52 'file' => 'upgrade_status.admin.inc',
53 ),
54 'upgrade_status_version' => array(
55 'arguments' => array('version' => NULL, 'tag' => NULL, 'class' => NULL),
56 'file' => 'upgrade_status.admin.inc',
57 ),
58 );
59 }
60

  ViewVC Help
Powered by ViewVC 1.1.2