function Notifications_Field::element_edit in Notifications 7
Build a form element to edit this field
Was: notifications_field_form_element($type, $value, $subscription = NULL, $title = FALSE, $required = FALSE, $size = 40)
1 call to Notifications_Field::element_edit()
- Notifications_Field_Autocomplete::element_edit in ./
notifications.field.inc - Build a form element to edit this field
2 methods override Notifications_Field::element_edit()
- Notifications_Field_Autocomplete::element_edit in ./
notifications.field.inc - Build a form element to edit this field
- Notifications_Field_Select::element_edit in ./
notifications.field.inc - Build a form element to edit this field
File
- ./
notifications.field.inc, line 342 - Drupal Notifications Framework - Default class file
Class
- Notifications_Field
- Base class for Notifications fields
Code
function element_edit($element = array()) {
$element += array(
'#title' => $this
->get_title(),
'#type' => 'textfield',
'#default_value' => $this
->get_value(),
'#required' => TRUE,
'#size' => 40,
);
return $element;
}