? .job.info.swp
? .job.install.swp
? .job.module.swp
? .resume.module.swp
? first_patch_no_views.patch
? access/.job_access.module.swp
Index: job.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/jobsearch/job.info,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 job.info
--- job.info	18 Jun 2007 23:06:47 -0000	1.1.2.1
+++ job.info	17 Oct 2008 14:22:44 -0000
@@ -1,2 +1,4 @@
+;$Id;
 name = Job
 description = "Allows recruiters to post jobs."
+core = 6.x
Index: job.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/jobsearch/job.install,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 job.install
--- job.install	7 May 2007 20:07:12 -0000	1.1.2.1
+++ job.install	17 Oct 2008 14:22:44 -0000
@@ -1,22 +1,59 @@
 <?php
+//$Id$
 
+/**
+ * Implementation of hook_install().
+ */
 function job_install() {
-  switch ($GLOBALS['db_type']) {
-    case 'mysql':
-    case 'mysqli':
-      $result = db_query("
-        CREATE TABLE {job} (
-          nid         INT NOT NULL default '0',
-          uid         INT NOT NULL default '0',
-          resume_nid  INT NOT NULL default '0',
-          timestamp   INT NOT NULL default '0',
-          status      INT NOT NULL default '0',
-          PRIMARY KEY (nid, uid),
-          KEY         (nid),
-          KEY         (uid)
-        ) TYPE=MyISAM /*!40100 DEFAULT CHARACTER SET utf8 */;");
-      break;
-  }
+  drupal_install_schema('job');
+}
+
+/**
+ * Implementation of hook_schema().
+ */
+function job_schema() {
+  $schema['job'] = array(
+    'description' => t('The table for jobs'),
+    'fields' => array(
+      
+      'nid' => array(
+        'description' => t('The {node} this version belongs to.'),
+        'type' => 'int',
+        'unsigned' => TRUE,
+        'not null' => TRUE,
+        'default' => 0
+      ),
+
+      'uid' => array(
+        'description' => t('The {users}.uid that created this version.'),
+        'type' => 'int',
+        'not null' => TRUE,
+        'default' => 0
+      ),
+
+      'resume_nid' => array(
+        'description' => t('foo'),
+        'type' => 'int',
+        'unsigned' => TRUE,
+        'not null' => TRUE,
+        'default' => 0
+      ),
+
+      'timestamp' => array(
+        'description' => t('A Unix timestamp indicating when this version was created.'),
+        'type' => 'int',
+        'not null' => TRUE,
+        'default' => 0
+      ),
+
+      'status' => array(
+        'description' => t('Is the node published or not'),
+        'type' => 'int',
+        'not null' => TRUE,
+        'default' => 0,
+      ),
+    ),
+  );
 }
 
 function job_update_1() {
Index: job.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/jobsearch/job.module,v
retrieving revision 1.7.2.6
diff -u -p -r1.7.2.6 job.module
--- job.module	4 Feb 2008 02:14:34 -0000	1.7.2.6
+++ job.module	17 Oct 2008 14:22:45 -0000
@@ -1,5 +1,4 @@
 <?php
-
 // $Id: job.module,v 1.7.2.6 2008/02/04 02:14:34 kbahey Exp $
 
 // Copyright 2006 http://2bits.com
@@ -12,6 +11,9 @@ define('JOB_EMAIL',            'job_emai
 define('JOB_PERM_APPLY',       'apply for jobs');
 define('JOB_PERM_MANAGE',      'manage job applications');
 
+/**
+ * Implementation of hook_help().
+ */
 function job_help($section) {
   switch ($section) {
     case 'admin/help#job':
@@ -19,6 +21,9 @@ function job_help($section) {
   }
 }
 
+/**
+ * Implementation of hook_perm().
+ */
 function job_perm() {
   return array(
     JOB_PERM_APPLY,
@@ -26,43 +31,67 @@ function job_perm() {
   );
 }
 
-function job_menu($may_cache) {
+/**
+ * Implementation of hook_menu().
+ */
+function job_menu() {
   $items = array();
-  if ($may_cache) {
-    $items[] = array(
-      'path'               => 'admin/settings/job',
-      'title'              => t('Job'),
-      'description'        => t('Job settings.'),
-      'callback'           => 'drupal_get_form',
-      'callback arguments' => array('job_admin_settings'),
-      'access'             => user_access('administer site configuration'),
-    );
-
-    $items[] = array(
-      'path'               => 'job/apply',
-      'callback'           => 'job_apply',
-      'type'               => MENU_CALLBACK,
-      'access'             => TRUE,
-    );
-
-    $items[] = array(
-      'path'               => 'job/clear',
-      'callback'           => 'job_clear',
-      'type'               => MENU_CALLBACK,
-      'access'             => user_access(JOB_PERM_MANAGE),
-    );
+  $items['admin/settings/job'] = array(
+    'title'            => 'Job',
+    'description'      => 'Job settings.',
+    'page callback'    => 'drupal_get_form',
+    'page arguments'   => array('job_admin_settings'),
+    'access arguments' => array('administer site configuration'),
+  );
+
+  $items['job/apply'] = array(
+    'page callback'    => 'job_apply',
+    'type'             => MENU_CALLBACK,
+    'access arguments' => array('access content'),
+  );
+
+  $items['job/clear'] = array(
+    'callback'           => 'job_clear',
+    'type'               => MENU_CALLBACK,
+    'access arguments'             => array(JOB_PERM_MANAGE),
+  );
+
+  $items['job/applications'] = array( 
+    'page callback'           => 'job_view',
+    'title'              => t('Job applications'),
+    'type'               => MENU_SUGGESTED_ITEM,
+    'access arguments'             => array(JOB_PERM_MANAGE),
+  );
 
-    $items[] = array( 
-      'path'               => 'job/applications',
-      'callback'           => 'job_view',
-      'title'              => t('Job applications'),
-      'type'               => MENU_SUGGESTED_ITEM,
-      'access'             => user_access(JOB_PERM_MANAGE),
-    );
-  }
   return $items;
 }
 
+/**
+ * Implementation of hook_theme().
+ */
+function job_theme() {
+  return array(
+    'job_view' => array(
+      'arguments' => array(
+        'list' => array(),
+      ),
+    ),
+    'job_mail' => array(
+      'arguments' => array(
+        'job_node' => NULL,
+        'job_user' => NULL,
+        'resume_node' => NULL,
+        'resume_user' => NULL,
+      ),
+    ),
+    'job_search_item' => array(
+      'arguments' => array(
+        'item' => NULL,
+      ),
+    ),
+  );
+}
+
 function job_admin_settings() {
   $set = 'job';
   $form[$set] = array(
@@ -82,6 +111,9 @@ function job_admin_settings() {
   return system_settings_form($form);
 }
 
+/**
+ * Implementation of hook_link().
+ */
 function job_link($type, $node = null, $teaser = FALSE) {
   global $user;
   $links = array();
@@ -118,6 +150,9 @@ function job_link($type, $node = null, $
   return $links;
 }
 
+/**
+ * Implementation of hook_user().
+ */
 function job_user($op, &$edit, &$account, $category = NULL) {
   global $user;
   switch ($op) {
@@ -313,6 +348,9 @@ function theme_job_view($list = array())
   return theme('table', $header, $rows);
 }
 
+/**
+ * Implementation of hook_nodeapi().
+ */
 function job_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) {
   switch ($op) {
     case 'delete':
@@ -375,7 +413,6 @@ function theme_job_search_item($item) {
   return $output ;
 }
 
-
 /**
  * Implementation of hook_views_tables():
  * Present fields and filters for user data.
Index: resume.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/jobsearch/resume.info,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 resume.info
--- resume.info	18 Jun 2007 23:06:47 -0000	1.1.2.1
+++ resume.info	17 Oct 2008 14:22:45 -0000
@@ -1,2 +1,3 @@
 name = Resume
 description = "Allows job seekers to post resumes and use them to apply for jobs posted."
+core = 6.x
Index: resume.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/jobsearch/resume.module,v
retrieving revision 1.5
diff -u -p -r1.5 resume.module
--- resume.module	27 Apr 2007 23:16:55 -0000	1.5
+++ resume.module	17 Oct 2008 14:22:45 -0000
@@ -6,6 +6,9 @@
 
 define('RESUME_NODE_TYPE',     'resume_node_type_');
 
+/**
+ * Implementation of hook_help().
+ */
 function resume_help($section) {
   switch ($section) {
     case 'admin/help#resume':
@@ -13,21 +16,32 @@ function resume_help($section) {
   }
 }
 
-function resume_menu($may_cache) {
-  $items = array();
-  if ($may_cache) {
-    $items[] = array(
-      'path'               => 'admin/settings/resume',
-      'title'              => t('Resume'),
-      'description'        => t('Resume settings.'),
-      'callback'           => 'drupal_get_form',
-      'callback arguments' => array('resume_admin_settings'),
-      'access'             => user_access('administer site configuration'),
+/**
+ * Implementation of hook_menu().
+ */
+function resume_menu() {
+  $items['admin/settings/resume'] = array(
+    'title'            => 'Resume',
+    'description'      => 'Resume settings.',
+    'page callback'    => 'drupal_get_form',
+    'page arguments'   => array('resume_admin_settings'),
+    'access arguments' => array('administer site configuration'),
     );
-  }
   return $items;
 }
 
+/**
+ * Implementation of hook_theme().
+ */
+function resume_theme() {
+  return array(
+    'resume_search_item' => array(
+      'arguments' => array(
+        'item' => NULL,
+      )
+    )
+  );
+}
 function resume_admin_settings() {
   $set = 'resume';
   $form[$set] = array(
Index: access/job_access.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/jobsearch/access/job_access.info,v
retrieving revision 1.1
diff -u -p -r1.1 job_access.info
--- access/job_access.info	24 Jun 2007 00:23:05 -0000	1.1
+++ access/job_access.info	17 Oct 2008 14:22:45 -0000
@@ -1,4 +1,5 @@
 name = Job access
 description = "Allows setting of permissions on jobs."
-dependencies = job
-version = "$Name:  $"
+dependencies[] = job
+core = 6.x
+version = "$Name: DRUPAL-5 $"
Index: access/job_access.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/jobsearch/access/job_access.module,v
retrieving revision 1.1
diff -u -p -r1.1 job_access.module
--- access/job_access.module	24 Jun 2007 00:23:05 -0000	1.1
+++ access/job_access.module	17 Oct 2008 14:22:45 -0000
@@ -2,6 +2,9 @@
 
 define('JOB_PERM_VIEW', 'view jobs');
 
+/**
+ * Implementation of hook_node_grants().
+ */
 function job_access_node_grants($account, $op) {
   $grants = array();
   if ($op == 'view' && user_access(JOB_PERM_VIEW, $account)) {
@@ -10,6 +13,9 @@ function job_access_node_grants($account
   return $grants;
 }
 
+/**
+ * Implementation of hook_node_access_records().
+ */
 function job_access_node_access_records($node) {
   $grants = array();
   if (variable_get(JOB_NODE_TYPE . $node->type, 0)) {
@@ -25,6 +31,9 @@ function job_access_node_access_records(
   return $grants;
 }
 
+/**
+ * Implementation of hook_perm().
+ */
 function job_access_perm() {
   return array(
     JOB_PERM_VIEW,
Index: access/resume_access.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/jobsearch/access/resume_access.info,v
retrieving revision 1.1
diff -u -p -r1.1 resume_access.info
--- access/resume_access.info	24 Jun 2007 00:23:05 -0000	1.1
+++ access/resume_access.info	17 Oct 2008 14:22:45 -0000
@@ -1,4 +1,5 @@
 name = Resume access
 description = "Allows setting of permissions on resumes by role."
-dependencies = resume
-version = "$Name:  $"
+dependencies[] = resume
+core = 6.x
+version = "$Name: DRUPAL-5 $"
Index: access/resume_access.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/jobsearch/access/resume_access.module,v
retrieving revision 1.1
diff -u -p -r1.1 resume_access.module
--- access/resume_access.module	24 Jun 2007 00:23:05 -0000	1.1
+++ access/resume_access.module	17 Oct 2008 14:22:45 -0000
@@ -2,6 +2,9 @@
 
 define('RESUME_PERM_VIEW', 'view resumes');
 
+/**
+ * Implementation of hook_node_grants().
+ */
 function resume_access_node_grants($account, $op) {
   global $user;
 
@@ -15,6 +18,9 @@ function resume_access_node_grants($acco
   return $grants;
 }
 
+/**
+ * Implementation of hook_node_access_records().
+ */
 function resume_access_node_access_records($node) {
   $grants = array();
   if (variable_get(RESUME_NODE_TYPE . $node->type, 0)) {
@@ -38,6 +44,9 @@ function resume_access_node_access_recor
   return $grants;
 }
 
+/**
+ * Implementation of hook_perm().
+ */
 function resume_access_perm() {
   return array(
     RESUME_PERM_VIEW,
