function Notifications_Custom_Subscription::form_checkbox in Notifications 6.4
Format as a form checkbox
1 call to Notifications_Custom_Subscription::form_checkbox()
- Notifications_Custom_Subscription::form_element in notifications_custom/
notifications_custom.class.inc - Format as a form element, which may be a visible checkbox or a hidden field
File
- notifications_custom/
notifications_custom.class.inc, line 70 - Drupal Notifications Framework - Default class file
Class
- Notifications_Custom_Subscription
- Message destination class
Code
function form_checkbox($user_registration = FALSE) {
return array(
'#type' => 'checkbox',
'#title' => $this
->get_name(),
'#default_value' => $this
->get_default($user_registration),
'#description' => $this
->get_description(),
);
}