X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fpart_pkg.pm;fp=FS%2FFS%2Fpart_pkg.pm;h=fb0570647abff1c76b7bcbbc69c8ced26c801af4;hp=da53715c6e7156dc2a20678742d36ef1e237681c;hb=3117b156cf3d118ae6a76c823311bfd941fbdf86;hpb=024e1169b90e76d4ecd61e6b8e7dbf1ade83bef1 diff --git a/FS/FS/part_pkg.pm b/FS/FS/part_pkg.pm index da53715c6..fb0570647 100644 --- a/FS/FS/part_pkg.pm +++ b/FS/FS/part_pkg.pm @@ -787,11 +787,17 @@ sub check { =item check_options -For a passed I<$options> hashref, validates any options that -have 'validate' subroutines defined in the info hash, -then validates the entire hashref if the price plan has -its own 'validate' subroutine defined in the info hash -(I<$options> values might be altered.) +Pass an I<$options> hashref that contains the values to be +inserted or updated for any FS::part_pkg::MODULE.pm. + +For each key in I<$options>, validates the value by calling +the 'validate' subroutine defined for that option e.g. +FS::part_pkg::MODULE::plan_info()->{$KEY}->{validate}. The +option validation function is only called when the hashkey for +that option exists in I<$options>. + +Then the module validation function is called, from +FS::part_pkg::MODULE::plan_info()->{validate} Returns error message, or empty string if valid. @@ -2610,4 +2616,3 @@ schema.html from the base documentation. =cut 1; -