X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fphone_type.pm;h=de565270ae7ad88d6acc6f83291df51e4c4eea95;hp=ded6b918ad66f7223a9bed1da7c1a1512c4e4eb2;hb=20f03d52cc6c930f610c0b4466eeeeda54fdbb40;hpb=32072dbf59a054529f5304574c0f56f9567d14d0 diff --git a/FS/FS/phone_type.pm b/FS/FS/phone_type.pm index ded6b918a..de565270a 100644 --- a/FS/FS/phone_type.pm +++ b/FS/FS/phone_type.pm @@ -91,6 +91,18 @@ sub check { $self->SUPER::check; } +=item get_phone_types + +returns a list of phone_types. + +=cut + +sub get_phone_types { + ## not using Home and Fax right now. false laziness with /elements/contact.html + my @phone_types = qsearch({table=>'phone_type', order_by=>'ORDER BY weight DESC', extra_sql => " WHERE typename NOT IN ('Home','Fax')"}); + return @phone_types; +} + # Used by FS::Setup to initialize a new database. sub _populate_initial_data { my ($class, %opts) = @_;