You are here

function mobile_number_sms_sending_is_enabled in Mobile Number 7

Helper function for detecting if sms functionality is available on the site.

Return value

bool Is enabled.

7 calls to mobile_number_sms_sending_is_enabled()
mobile_number_element_process in ./mobile_number.module
Mobile number element process callback.
mobile_number_field_widget_form in ./mobile_number.module
Implements hook_field_widget_form().
mobile_number_field_widget_settings_form in ./mobile_number.module
Implements hook_field_widget_settings_form().
mobile_number_form_field_ui_field_edit_form_alter in ./mobile_number.module
Implements hook_form_FORM_ID_alter().
mobile_number_tfa_account_number in ./mobile_number.module
Helper function for getting account mobile number for TFA, if applicable.

... See full list

File

./mobile_number.module, line 1104
mobile_number.module

Code

function mobile_number_sms_sending_is_enabled() {
  return mobile_number_sms_callback() ? TRUE : FALSE;
}