Download & Extend

Add drupal_alter to forum_get_forums

Project:Advanced Forum
Version:6.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

We need to hide the last_reply sometimes when a user wishes to cloak their email. It would be awesome to have a drupal_alter at the end of forum_get_forums so we don't have to patch AF.

Comments

#1

Status:active» needs review

Here's a patch :)

AttachmentSize
1351392_allow_drupal_alter_on_advanced_forum.patch 1.04 KB

#2

This seems reasonable. What is the purpose of the other line being added in the patch?

#3

The last_post object gets overwritten with a string and I needed access to the raw data, seemed reasonable to leave the raw data there in case other people need it.

#4

Ah, that makes sense.

Thanks,

Michelle

#5

Status:needs review» fixed

Good idea - thanks aidanlis.

Committed to 6.x-2.x branch.

I added a comment to explain $forum->last_post_obj as per #3.

#6

7.x patched, too.

#7

Thanks both of you!

#8

Status:fixed» closed (fixed)

#9

Status:closed (fixed)» fixed

Thanks for helping with the housekeeping brandy.brown, but we usually leave tickets 'fixed' and let the system close them, which it does automatically after 2 weeks if nobody has posted any follow-ups.

#10

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here