function Notifications_Subscription::format_fields in Notifications 6.4
Same name and namespace in other branches
- 7 notifications.subscription.inc \Notifications_Subscription::format_fields()
Format all fields
Return value
array(); Array of arrrays with (name, value)
2 calls to Notifications_Subscription::format_fields()
- Notifications_Subscription::format_name in includes/
notifications_subscription.class.inc - If the subscription type has a name, like custom subscriptions have, that will be the name Otherwise we build the name using fields and values
- Notifications_Subscription::form_info in includes/
notifications_subscription.class.inc - Subscription information field for several forms
File
- includes/
notifications_subscription.class.inc, line 847 - Drupal Notifications Framework - Default class file
Class
- Notifications_Subscription
- Message destination class
Code
function format_fields($format = self::FORMAT_HTML) {
if (!isset($this->format[$format]['fields'])) {
// Get field names and values formatting each field
$items = array();
foreach ($this
->get_fields() as $field) {
$items[] = $this
->format_field($field, $format);
}
$this->format[$format]['fields'] = $this
->format_items($items, $format);
}
return $this->format[$format]['fields'];
}