Commit af8e8c6e authored by webchick's avatar webchick

#652176 follow-up by David_Rothstein: Clarify confusing comment.

parent 7e26556a
......@@ -570,8 +570,8 @@ function forum_form_alter(&$form, $form_state, $form_id) {
$form['taxonomy_forums'][$langcode]['#multiple'] = FALSE;
if (empty($form['taxonomy_forums'][$langcode]['#default_value'])) {
// If there is no default forum already selected, try to get the forum
// ID from the URL (e.g., if we are on a page like node/add/forum/3, we
// expect "3" to be the ID of the forum that was requested).
// ID from the URL (e.g., if we are on a page like node/add/forum/2, we
// expect "2" to be the ID of the forum that was requested).
$requested_forum_id = arg(3);
$form['taxonomy_forums'][$langcode]['#default_value'] = is_numeric($requested_forum_id) ? $requested_forum_id : NULL;
}
......
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