You are here

function sms_user_entity_property_info_alter in SMS Framework 7

Implements hook_entity_property_info_alter().

File

modules/sms_user/sms_user.module, line 1222
Provides integration between the SMS Framework and Drupal users.

Code

function sms_user_entity_property_info_alter(&$info) {
  $properties =& $info['user']['properties'];
  $properties['sms_user_phone_number'] = array(
    'label' => t("Phone Number"),
    'description' => t("The users mobile phone number."),
    'type' => 'text',
    'getter callback' => 'entity_property_sms_user_get_properties',
    'computed' => TRUE,
    'required' => FALSE,
  );
  $properties['sms_user_status'] = array(
    'label' => t("SMS Status"),
    'description' => t("The users status of the Mobile Phone number."),
    'type' => 'text',
    'getter callback' => 'entity_property_sms_user_get_properties',
    'computed' => TRUE,
    'required' => FALSE,
  );
  $properties['sms_user_gateway'] = array(
    'label' => t("SMS Gateway"),
    'description' => t("The SMS Gateway for this user."),
    'type' => 'text',
    'getter callback' => 'entity_property_sms_user_get_properties',
    'computed' => TRUE,
    'required' => FALSE,
  );
}