It would be if the query in the tagclouds_get_tags() function could be modified from other modules. For example, this feature request could be solved too from a custom module: https://www.drupal.org/node/2371329.

Comments

mxr576’s picture

Status: Active » Needs review
StatusFileSize
new498 bytes

Here is the patch, which makes it possible to alter the query object from the tagclouds_get_tags() function in any module by implementing the hook_tagclouds_get_tags_query_alter() function.

  • mxr576 authored 4772a29 on 7.x-1.x
    Issue #2532680 by mxr576: Add query alter support
    
joseph.olstad’s picture

Status: Needs review » Fixed

mxr576, I've committed your change and granted you maintainer access.

Status: Fixed » Closed (fixed)

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

amourow’s picture

Version: 7.x-1.10 » 7.x-1.x-dev
StatusFileSize
new419 bytes

While implementing the query alter, we found it's also useful to bring the $size of the allowed number of tags.

In our alter, we want to alter the query for a specific situation to expanding the tag cloud.
I can't find either a method to get the query range nor a block delta number to help get the size number.

The simplest way for me is to bring the $size with it.
I'd like to propose a minor change to expand the alter support a bit.

amourow’s picture

Move issue to a newly open one.

joseph.olstad’s picture

amourow, you are now have full maintainer priviledges. Go ahead and commit this change and publish new releases and branches as you wish.

MGParisi’s picture

And the immortal project continues.... I have unleashed this evil onto the world and expect it to never die! I have no regrets on my creation of this monster known as "Tagcloud".... I only hope that my evil plan succeeds! HAHAHAHAHAHAHHahahahahahahahahahah , .