You are here

function Notifications_Subscription::get_fields in Notifications 7

Same name and namespace in other branches
  1. 6.4 includes/notifications_subscription.class.inc \Notifications_Subscription::get_fields()

Get fields as array of field objects

16 calls to Notifications_Subscription::get_fields()
Notifications_Subscription::check_fields in ./notifications.subscription.inc
Check all fields are there and they have a value
Notifications_Subscription::fields_edit_elements in ./notifications.subscription.inc
Get elements to edit fields. Subscription can override the fieldset
Notifications_Subscription::fields_edit_fieldset in ./notifications.subscription.inc
Get a subform to edit field elements.
Notifications_Subscription::format_fields in ./notifications.subscription.inc
Format all fields
Notifications_Subscription::form_info in ./notifications.subscription.inc
Subscription information field for several forms

... See full list

File

./notifications.subscription.inc, line 1253
Drupal Notifications Framework - Default class file

Class

Notifications_Subscription
Common base for subscription type and subscription instance

Code

function get_fields($filter = NULL) {
  if (!isset($this->fields)) {
    if ($this
      ->is_stored()) {
      $this
        ->load_fields();
    }
    else {
      $this
        ->set_fields();
    }
  }
  return $this
    ->filter_fields($this->fields, $filter);
}