| 19 |
<code> |
<code> |
| 20 |
function watchdognotify_subscription($op, $arg1 = null, $arg2 = null) { |
function watchdognotify_subscription($op, $arg1 = null, $arg2 = null) { |
| 21 |
if ($op == 'special') { |
if ($op == 'special') { |
| 22 |
return '<p>'.l("Subscribe to errors", 'subscription/add/watchdog').'</p>'; |
return l("Subscribe to site errors", 'subscription/add/watchdog'); |
| 23 |
} |
} |
| 24 |
} |
} |
| 25 |
</code> |
</code> |
| 76 |
|
|
| 77 |
|
|
| 78 |
4. How to create own channels? |
4. How to create own channels? |
| 79 |
Register the channel vis hook_subscriptions: |
Register the channel via hook_subscriptions: |
| 80 |
<code> |
<code> |
| 81 |
function ftpchannel_subscription($op, $arg1 = null, $arg2 = null) { |
function ftpchannel_subscription($op, $arg1 = null, $arg2 = null) { |
| 82 |
if ($op == 'channel') { |
if ($op == 'channel') { |