--- casetracker_basic.module	2010-03-13 02:45:43.000000000 +0000
+++ casetracker_basicNew.module	2010-07-25 10:36:27.000000000 +0100
@@ -6,6 +6,75 @@
  * Enables a basic project node type for use with Case Tracker.
  */
 
+
+/**
+ * Implementation of hook_help().
+ */
+/*
+function casetracker_basic_help($path, $arg) {
+  $out = '';
+  switch ($path) {
+    case 'casetracker/cases/%':
+      $node = node_load($arg[2]);
+      if (casetracker_basic_case_access('create cases', $node)) {
+        $title = $node->title;
+        $out = l('Create a new issue for ' . $title, 'node/add/casetracker-basic-case/' . $node->nid);
+      }
+      break;
+  }
+  return $out;
+}
+*/
+
+/**
+ * Implementation of hook_theme
+ */
+function casetracker_basic_theme() {
+  return array(
+    'casetracker_basic_project_links' => array(
+      'arguments' => array('node' => NULL),
+    ),
+  );
+}
+
+function theme_casetracker_basic_project_links($info) {
+  $output .= '<div>' . l(t('My cases'), '/casetracker/my') . ', ' . l(t('All Projects'), '/casetracker/projects') . '</div>';
+
+  // Customizing help message for installation.
+  $output .= '<p>' . t("This block is a stub, and can be rethemed as the module is customized and Views with new URLs are added. The block contents are a theme call, overridden using the theme function 'casetracker_basic_project_links'. The block can be made to appear and disappear using the block's configuration page.") . '</p>';
+  return $output;
+}
+
+/**
+* Implementation of hook_block.
+*/
+function casetracker_basic_block($op = 'list', $delta = 0, $edit = array()) {
+  switch ($op) {
+    case 'list':
+      $blocks['casetracker-project-links'] = array(
+        'info' => t('Casetracker Basic links'),
+      );
+      return $blocks;
+    case 'configure':
+       return array();
+    case 'save':
+        return;
+    case 'view':
+
+      switch ($delta) {
+        case 'casetracker-project-links':
+          // This block is intended as scaffolding for user customization.
+          if (user_access('access content')) {
+            $info = casetracker_page_info();
+            $block['subject'] = t('Casetracker Basic links'); 
+            $block['content'] = theme('casetracker_basic_project_links', $info);
+          }
+          break;
+      }
+      return $block;
+  }
+}
+
 /**
  * Implementation of hook_perm().
  */
@@ -84,6 +153,8 @@ function casetracker_basic_project_acces
 function casetracker_basic_case_access($op, $node) {
   global $user;
 
+  if ($user->uid == 1) return TRUE;
+
   switch ($op) {
     case 'create':
       return user_access('create cases');
