Commit a623d3fc authored by catch's avatar catch

Issue #1060772 by agentrickard, DeweyOxberger: Fixed Create a view of taxonomy...

Issue #1060772 by agentrickard, DeweyOxberger: Fixed Create a view of taxonomy terms (Views UI) and get an error from hook_form_alter().
parent a8a71c6d
......@@ -582,7 +582,7 @@ function forum_field_storage_pre_update($entity_type, $entity, &$skip_fields) {
*/
function forum_form_alter(&$form, $form_state, $form_id) {
$vid = variable_get('forum_nav_vocabulary', 0);
if (isset($form['vid']) && $form['vid']['#value'] == $vid) {
if (isset($form['vid']['#value']) && $form['vid']['#value'] == $vid) {
// Hide critical options from forum vocabulary.
if ($form_id == 'taxonomy_form_vocabulary') {
$form['help_forum_vocab'] = array(
......
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