You are here

function poptin_help in Website Popups, Email Popup, Exit-Intent Popup, and Contact Forms – Poptin 8

Same name and namespace in other branches
  1. 7 poptin.module \poptin_help()

Implements poptin_help().

File

./poptin.module, line 13
Module for adding popups on website.

Code

function poptin_help($path, $arg) {
  switch ($path) {
    case 'help.page.poptin':
      $filepath = dirname(__FILE__) . '/README.md';
      if (file_exists($filepath)) {
        $readme = file_get_contents($filepath);
      }
      else {
        $filepath = dirname(__FILE__) . '/README.txt';
        if (file_exists($filepath)) {
          $readme = file_get_contents($filepath);
        }
      }
      if (!isset($readme)) {
        return NULL;
      }
      $output = '<pre>' . $readme . '</pre>';
      return $output;
  }
}