You are here

function mobile_number_element_info in Mobile Number 7

Implements hook_element_info().

File

./mobile_number.module, line 671
mobile_number.module

Code

function mobile_number_element_info() {
  return array(
    'mobile_number' => array(
      '#input' => TRUE,
      '#process' => array(
        'mobile_number_element_process',
      ),
      '#element_validate' => array(
        'mobile_number_element_validate',
      ),
      '#submit' => array(
        'mobile_number_element_submit',
      ),
      '#value_callback' => 'mobile_number_value_callback',
      '#mobile_number' => array(
        'allowed_countries' => array(),
        'verify' => MOBILE_NUMBER_VERIFY_OPTIONAL,
        'message' => MOBILE_NUMBER_DEFAULT_SMS_MESSAGE,
        'tfa' => NULL,
        'token_data' => array(),
        'placeholder' => NULL,
      ),
    ),
  );
}