You are here

function Notifications_Field::element_info in Notifications 7

Build a form element to display this field

File

./notifications.field.inc, line 356
Drupal Notifications Framework - Default class file

Class

Notifications_Field
Base class for Notifications fields

Code

function element_info($element = array()) {
  $element += array(
    '#type' => 'item',
    '#title' => $this
      ->get_title(),
    '#markup' => $this
      ->get_link(),
  );
  return $element;
}