function activeedit_node_form_id in Javascript Tools 5
Change the form id to 'node_form' if this is a node form.
2 calls to activeedit_node_form_id()
- activeedit_form_alter in activeedit/
activeedit.module - Implementation of hook_form_alter().
- activeedit_render in activeedit/
activeedit.module
File
- activeedit/
modules/ node.inc, line 87
Code
function activeedit_node_form_id(&$form_id, $key) {
// Node form is a special case.
$targets = activeedit_get_targets($_REQUEST['activeedit_type']);
if (in_array($key, element_children($targets['node'])) && strpos($form_id, '_node_form')) {
$form_id = 'node_form';
}
}