You are here

function hook_sms_gateway_info_alter in SMS Framework 7

Same name and namespace in other branches
  1. 8 sms.api.php \hook_sms_gateway_info_alter()
  2. 2.x sms.api.php \hook_sms_gateway_info_alter()
  3. 2.1.x sms.api.php \hook_sms_gateway_info_alter()

Alter gateway information.

This hook gives you a chance to modify gateways after all plugin definitions are discovered.

Parameters

array $gateway_info: An array containing gateway information.

string $gateway_id: The gateway ID.

File

./sms.api.php, line 36
SMS Framework hooks.

Code

function hook_sms_gateway_info_alter($gateway_info, $gateway_id) {
  if ($gateway_id === 'log') {
    $gateway_info['name'] = t('The Logger');
  }
}