public function Notifications_Subscription::element_send_method in Notifications 7
Send method: form element
2 calls to Notifications_Subscription::element_send_method()
- Notifications_Subscription::form_edit in ./
notifications.subscription.inc - Get edit form for this subscription
- Notifications_Subscription::form_view in ./
notifications.subscription.inc - Get view only form for this subscription
File
- ./
notifications.subscription.inc, line 511 - Drupal Notifications Framework - Default class file
Class
- Notifications_Subscription
- Common base for subscription type and subscription instance
Code
public function element_send_method($element = array()) {
$send_methods = notifications_send_methods($this
->get_user());
if (count($send_methods) > 1) {
$element += array(
'#title' => t('Send method'),
'#type' => 'select',
'#options' => $send_methods,
'#default_value' => $this->send_method,
);
}
return $element;
}