function Notifications_Subscription::fields_subform in Notifications 6.4
Produce fieldset to edit field values
File
- includes/
notifications_subscription.class.inc, line 216 - Drupal Notifications Framework - Default class file
Class
- Notifications_Subscription
- Message destination class
Code
function fields_subform() {
$elements = array(
'#type' => 'fieldset',
'#tree' => TRUE,
'#description' => $this
->get_description(),
);
foreach ($this
->get_type_fields() as $index => $field) {
$elements[$index]['type'] = array(
'#type' => 'value',
'#value' => $field->field,
);
$elements[$index]['value'] = array(
'#type' => 'value',
'#value' => $field->value,
);
$elements[$index]['edit'] = $this
->field_element($field->field, $field->value, TRUE, TRUE);
}
return $elements;
}