function oa_notifications_edit_form in Open Atrium Notifications 7.2
Render the edit form for Notifications
Parameters
$form: The FAPI array
$form_state: The state of the form
$node: The node being viewed/edited
Return value
The form
1 string reference to 'oa_notifications_edit_form'
- oa_notifications_pane_render in plugins/
content_types/ oa_notifications_pane.inc - Run-time rendering of the body of the pane.
File
- plugins/
content_types/ oa_notifications_pane.inc, line 54
Code
function oa_notifications_edit_form($form, &$form_state, $node) {
// Since this form functions via AJAX we need to tell the form handlers to include it when processing the form
ctools_form_include_file($form_state, drupal_get_path('module', 'oa_notifications') . '/plugins/content_types/oa_notifications_pane.inc');
$form['#node'] = $node;
$form[OA_NOTIFY_FORM] = array(
'#type' => 'container',
'#tree' => TRUE,
);
oa_notifications_form_fields($form[OA_NOTIFY_FORM], $form_state, $node);
return $form;
}