You are here

function sms_receive_sms_fields in SMS Framework 5

Hook for gateways to define incoming fields

3 calls to sms_receive_sms_fields()
sms_receive_admin_form in modules/sms_receive/sms_receive.module
sms_receive_admin_form_submit in modules/sms_receive/sms_receive.module
sms_receive_process_message in modules/sms_receive/sms_receive.module
Based on mailhandler_process_message() but heavily modified Creates and return node object

File

modules/sms_receive/sms_receive.module, line 134

Code

function sms_receive_sms_fields() {

  // Maybe 'from' and 'text' should be built-in fields and
  // this is used to collect extra fields, in our case 'type'
  $gateway = variable_get('sms_default_gateway', 0);
  $function = 'sms_' . $gateway . '_receive_fields';
  if (function_exists($function)) {
    $fields = $function();
  }
  return $fields;
}