Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By bol3ez on
Hello,
In my website I used Apache Solr and facet api to display facets search blocks,
I created a custom module that show users a block that save trough a form the current request_uri,
but now I want to add to this block another content that show me the active filters that the user have shosen.
Here my block_view code :
<?php
function sf_block_view($delta = '') {
$block = array();
switch($delta) {
case 'sf':
$block['subject'] = t('Save this filter result');
$block['content'] = drupal_get_form('sf_form');
break;
}
return $block;
}
?>
So how can I first add another content to the $block['content'] variable
and also how can I list the active filters chosen by user
Thanks in advance