You are here

public function Notifications_Subscription::element_info in Notifications 7

Get subscription form info element

2 calls to Notifications_Subscription::element_info()
Notifications_Subscription::form_edit in ./notifications.subscription.inc
Get edit form for this subscription
Notifications_Subscription::form_view in ./notifications.subscription.inc
Get view only form for this subscription

File

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

Class

Notifications_Subscription
Common base for subscription type and subscription instance

Code

public function element_info() {
  $elements = array(
    '#type' => 'fieldset',
    '#title' => $this
      ->get_name(),
  );
  $elements['description']['#markup'] = $this
    ->get_description();

  // We may have fixed fields or not
  if ($fields = $this
    ->get_type_fields()) {
    $elements['fields'] = $this
      ->element_fields_info($fields);
  }
  return $elements;
}