1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
#!/usr/bin/perl
package RT::Extension::SMSNotify::PagerForUser;
use 5.10.1;
use strict;
use warnings;
use DateTime;
=head1 NAME
RT::Extension::SMSNotify::PagerForUser - pager number lookup handler
=head1 DESCRIPTION
The default PagerForUser, just returns the user's pagerphone attribute.
=head1 CONFIGURATION
No configuration is available.
=head1 AUTHOR
Craig Ringer <craig@2ndquadrant.com>
=head1 COPYRIGHT
Copyright 2013 2ndQuadrant
Released under the same license as Perl its self.
=cut
=head2 GetPhoneForUser
Look up the PagerPhone field of the specified user and return it.
See the configuration section and L<RT::Extension::SMSNotify>.
=cut
sub GetPhoneForUser {
RT::Logger->debug("SMSNotify: Using default \$SMSNotifyGetPhoneForUserFn");
return $_[0]->PagerPhone if $_[0];
}
1;
|