function Notifications_Subscription::format_fields in Notifications 7
Same name and namespace in other branches
- 6.4 includes/notifications_subscription.class.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 ./
notifications.subscription.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 ./
notifications.subscription.inc - Subscription information field for several forms
File
- ./
notifications.subscription.inc, line 1466 - Drupal Notifications Framework - Default class file
Class
- Notifications_Subscription
- Common base for subscription type and subscription instance
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'];
}