content types appearing twice in dropdown

Created on 21 January 2010, almost 15 years ago
Updated 28 October 2024, about 2 months ago

The list of content types to add at user/UID/notifications/group has each content type twice:

The mistake is here, but I'm not sure what is meant to be happening with the first $content_types:

function og_notifications_add_form($form_state, $account) {
  $content_types = array_filter(variable_get('og_notifications_content_types', array()));
  $content_names = node_get_types('names');
  foreach ($content_types as $type) {
    $content_types[$type] = $content_names[$type];
  }
πŸ› Bug report
Status

Needs work

Version

2.0

Component

og_notifications

Created by

πŸ‡¬πŸ‡§United Kingdom joachim

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024