You are here

function pm_help in Drupal PM (Project Management) 7

Same name and namespace in other branches
  1. 8 pm.module \pm_help()
  2. 7.3 pm.module \pm_help()
  3. 7.2 pm.module \pm_help()
  4. 4.x pm.module \pm_help()

Implements hook_help().

File

./pm.module, line 10
Main module file for the Project Management module.

Code

function pm_help($path, $arg) {
  $output = '';
  switch ($path) {
    case "admin/help#pm":
      $output = '<p>' . t("Provides a complete project management environment") . '</p>';
      break;
    case "admin/help#pmattribute":
      $output = '<p>' . t("Provides attributes support for Project Management") . '</p>';
      $output .= '<p>' . t("Price Modes - Price modes are used calculate the price of the Project Management node when added to an invoice. A price mode can be added to any Project Management node type and any type can be added to an invoice. When a node is added to an invoice it looks for a price mode in the following order:") . '</p>';
      $output .= '<p>' . t("Ticket, Task, Project, Organization.") . '</p>';
      $output .= '<p>' . t("It will take the price mode for it's current node or the first valid node type above in it's tree. For example, for a task node type, if that node doesn't have a price mode it will look at the project and then the organization and take the first one it finds. This means you can define a price mode for the organization and it will be used for all nodes under that organization unless it's given a different one.") . '</p>';
      $output .= '<p>' . t("The following price modes keys are defined:") . '<br />';
      $output .= '<ul>';
      $output .= '<li>' . t("not applicable - This is ignored by the system. This means that no price mode is defined.") . '</li>';
      $output .= '<li>' . t("fixed - Price of 0 is used (so the invoice would need to be manually updated.") . '</li>';
      $output .= '<li>' . t("hourly - Price taken from node and multiplied by billing duration.") . '</li>';
      $output .= '<li>' . t("daily - Price given is for daily rate. This price is divided by 8 hours and then multiplied by the billing duration.") . '</li>';
      $output .= '<li>' . t("fixed_price - Will use the price given as the fixed price for that invoice item.") . '</li>';
      $output .= '</ul>';
      break;
  }
  return $output;
}