| 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"; |