12345678910111213141516171819202122232425262728293031323334353637 |
- use strict;
- use v5.10;
- AddModuleDescription('context.pl', 'Calendar Extension');
- our ($q, @Debugging, $UserGotoBar, @MyInitVariables);
- push (@MyInitVariables, \&ContextMenuItem);
- sub ContextMenuItem {
- my $id = GetId();
- if (defined &Cal and $id =~ /^(\d\d\d\d-\d\d)-\d\d/) {
- $UserGotoBar .= ScriptLink("action=collect;match=%5e$1",
- $1,
- "local collection month");
- }
- }
- push (@Debugging, sub {
- if (not defined &Cal) {
- print $q->p("context.pl requires calendar.pl");
- }});
|