/[drupal]/contributions/modules/secondlife/samples/sltest.module
ViewVC logotype

Diff of /contributions/modules/secondlife/samples/sltest.module

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

revision 1.4.2.1, Mon Dec 15 04:51:15 2008 UTC revision 1.4.2.2, Tue Dec 16 03:37:52 2008 UTC
# Line 7  Line 7 
7  function sltest_help($section) {  function sltest_help($section) {
8    switch ($section) {    switch ($section) {
9      case 'admin/help#sltest':      case 'admin/help#sltest':
10        $output = '<p>'. t('Second Life test') .'</p>';        return '<p>'. t('Second Life test') .'</p>';
       return $output;  
                         break;  
11    }    }
12  }  }
13    
14  function sltest_dispatch($cmd, &$sl, $args) {  function sltest_dispatch($cmd, &$sl, $args) {
   
15    switch($cmd) {    switch($cmd) {
16      case 'hello':      case 'hello':
17        $sl->response['message'] = "success;Hi there, $sl->ownername";        $sl->response['message'] = "success;Hi there, $sl->ownername";

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