[Tickets #5927] Re: Possibility to enable or disable portal blocks

bugs at bugs.horde.org bugs at bugs.horde.org
Tue Nov 27 07:14:08 UTC 2007


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=5927
-----------------------------------------------------------------------
 Ticket             | 5927
 Updated By         | ml at radoeka.nl
 Summary            | Possibility to enable or disable portal blocks
 Queue              | Horde Framework Packages
 Version            | FRAMEWORK_3
 Type               | Enhancement
 State              | Accepted
 Priority           | 1. Low
 Owners             | 
-----------------------------------------------------------------------


ml at radoeka.nl (2007-11-26 23:14) wrote:

> You can remove the block files completely or comment out or remove 
> the $block_name line. The block list is built automatically.

Thanks for providing a workaround.  BTW: this is nicely done in
weatherdotcom block:

> But we should probably disable blocks automatically where we can.

/* Disable block if not configured. */
if (!empty($GLOBALS['conf']['weatherdotcom']['partner_id']) &&
    !empty($GLOBALS['conf']['weatherdotcom']['license_key'])) {
    $block_name = _("weather.com");
}

Perhaps something similar can be done for the fortune and the metar
block.




More information about the bugs mailing list