Commit da6015e0 authored by Dries's avatar Dries
Browse files

- Patch #1297410 by bhosmer, bfroehle: drop remnants of #node_edit_form().

parent 97c83c4f
......@@ -594,7 +594,13 @@ function forum_form_alter(&$form, $form_state, $form_id) {
$form['advanced']['parent']['#access'] = FALSE;
}
}
if (!empty($form['#node_edit_form']) && isset($form['taxonomy_forums'])) {
}
/**
* Implements hook_form_BASE_FORM_ID_alter().
*/
function forum_form_node_form_alter(&$form, &$form_state, $form_id) {
if (isset($form['taxonomy_forums'])) {
$langcode = $form['taxonomy_forums']['#language'];
// Make the vocabulary required for 'real' forum-nodes.
$form['taxonomy_forums'][$langcode]['#required'] = TRUE;
......
......@@ -106,10 +106,6 @@ function node_form($form, &$form_state, $node) {
unset($node->in_preview);
}
// Identify this as a node edit form.
// @todo D8: Remove. Modules can implement hook_form_BASE_FORM_ID_alter() now.
$form['#node_edit_form'] = TRUE;
// Override the default CSS class name, since the user-defined node type name
// in 'TYPE-node-form' potentially clashes with third-party class names.
$form['#attributes']['class'][0] = drupal_html_class('node-' . $node->type . '-form');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment