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

Diff of /contributions/modules/pirate/pirate.module

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

revision 1.4.2.1, Thu Mar 6 10:35:53 2008 UTC revision 1.4.2.2, Tue Mar 25 21:40:46 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2    
3    /**
4     * Implementation of hook_help().
5     */
6  function pirate_help($section) {  function pirate_help($section) {
7    switch ($section) {    switch ($section) {
8      case 'admin/modules#description':      case 'admin/modules#description':
# Line 7  function pirate_help($section) { Line 10  function pirate_help($section) {
10    }    }
11  }  }
12    
13    /**
14     * Implementation of hook_filter().
15     */
16  function pirate_filter($op, $delta = 0, $format = -1, $text = '') {  function pirate_filter($op, $delta = 0, $format = -1, $text = '') {
17    switch ($op) {    switch ($op) {
18      case 'list':      case 'list':
# Line 126  function pirate_filter($op, $delta = 0, Line 132  function pirate_filter($op, $delta = 0,
132    }    }
133  }  }
134    
135    /**
136     * Implementation of hook_filter_tips().
137     */
138  function pirate_filter_tips($delta, $format, $long = FALSE) {  function pirate_filter_tips($delta, $format, $long = FALSE) {
139    return "Avast!  This website be taken over by pirates on September 19th.  Yarr!";    return "Avast!  This website be taken over by pirates on September 19th.  Yarr!";
140  }  }
141    
142  // support function for pirate()  // Support function for pirate()
143  // this could probably be refactored to make it more generic, allowing  // this could probably be refactored to make it more generic, allowing
144  // different filters to pass their own patterns in.  // different filters to pass their own patterns in.
145  function avast($stub = '',$chance = 5) {  function avast($stub = '',$chance = 5) {

Legend:
Removed from v.1.4.2.1  
changed lines
  Added in v.1.4.2.2

  ViewVC Help
Powered by ViewVC 1.1.2