Experimental Project

This is a sandbox project, which contains experimental code for developer use only.

Overview

The LiveTV Toggle Example module is a simple module that allows a user with appropriate permissions to toggle a block display between two different sources of content.

This is a custom module written specifically for one website. I am not accepting requests to generalize this module as a full project at this time. If you need a similar module created for your project, you may contact me to discuss custom development options on a per-project basis.

I am posting this module here as part of a tutorial for the Geeks and God website. This module can be used as a starting point for your own implementation. You are completely free to download this module and alter the livetv_block_render() function to suit your own needs.

Implementation

In the original implementation for this module, this block is shown on the front page of a church website. Any user with the 'toggle live tv block' permission may navigate to admin/content/livetv and switch between "Show Live TV Info" and "Show Current Series Promo" in this block. During live streaming of church services, this block is set to display a link to the live streaming page. When the stream is not live, this block displays a view that shows the currently promoted sermon series.

In order to work out of the box, the link to 'media/webtv' needs to be valid and a view named 'current_series' must exist. Values are hard-coded mostly because we want the user to have only one option on the admin screen. Again, this module is intended as an example. You will want to edit it to suit your own needs.

Modifications

If you would like to use this module as a starting point in your own project, simply alter the output returned by livetv_block_render(). To allow additional options, simply change the $options line in livetv_admin_settings().

Maintainers for LiveTV Toggle Example

  • micahw156 - 3 commits
    last: 1 year ago, first: 1 year ago

Issues for LiveTV Toggle Example

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports