Actions

Actions

Regardless of the usage mode, actions direct mod_phonenumber to perform certain activities. The usage mode does not affect the actions’ result but determine how and when are they invoked as well as how the result should be returned.

ActionReturn TypeParameters
is_alpha_numberboolean
convert_alpha_characters_in_numbernumber
normalize_digits_onlynumber
normalize_diallable_chars_onlynumber
get_national_significant_numbernumberdefault_region
format_out_of_country_calling_numbernumberdefault_region,calling_from
formatnumberdefault_region,format
get_number_typetypedefault_region
is_valid_number_for_regionbooleandefault_region
get_region_coderegiondefault_region
is_possible_number_with_reasonreasondefault_region
is_possible_numberbooleandefault_region
get_description_for_numberdescriptiondefault_region,locale