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.
Install
Works with Drupal: 7.xUsing Composer to manage Drupal site dependencies
Downloads
Download sharedblocks-7.x-2.0-beta3.tar.gztar.gz
15.34 KB
MD5: e9a5c28fdab5da1c14354d966f0c48ce
SHA-1: e01a9b72fe4fb3f9cea8f3eaa26787047fbf7380
SHA-256: 4ec3bda7e94a9bf40f55995768490a4a3844f88b8e04b7007e202e0ba1beae72
Download sharedblocks-7.x-2.0-beta3.zipzip
19.26 KB
MD5: a9f6431e243ee48788259a98eac7f465
SHA-1: 7fa22d75deb63eab3ff252e8a9afe027d10fc91a
SHA-256: 5d1d09154d87afd96b81a142cff1eb0959b1a6ea555d4c338437b6e52c863781
Release notes
Changes since 7.x-2.0-beta2:
- #2105849: Add a 'Configure' link to admin/structure/sharedblocks/publish from the modules page.
- #2180951: Disallow subscription blocks from being shared by adding a 'no publish' flag to hook_block_info().
- #1580248: Standardize delivery of block content via JSON as rendered HTML instead of render API array.
- Allow new subscription blocks to be added directly from the block UI. Unified block UI forms and exportable UI forms.
- #2180945: Fixed shared blocks should always render as the anonymous user.
- Added watchdog() logging for when a request to a shared block fails.
- #2180523: Added security tokens to the published block URLs. Existing installs will have this security check disabled until manually enabled.
- Split helper code into sharedblocks.publish.inc and sharedblocks.subscribe.inc.
- #2181087: Fixed shared blocks should be tricked into thinking the current page is the homepage.
- #2181089: Added ability to apply a 'sharedblocks' text format to the shared block output. Abstracts the convert relative to absolute URL functionality to the filter system (and Pathologic module).
- Now that subscribed blocks are marked as DRUPAL_CACHE_CUSTOM, sharedblocks_cron() is no longer necessary.
- Moved administration page to sharedblocks.admin.inc.
- Fixed drupal_json_decode() should be used instead of json_decode().
- #967456: Fixed sharedblocks_publish_block() should use drupal_json_output().
- #2180929: Filter block variable before saving to remove un-published blocks.
- #2180521: Fixed block rendering skips hook_block_view_alter() by adding a seperate helper function to render and process the block that mimics the code in _block_render_blocks().
- Added the DRUPAL_CACHE_CUSTOM flag to sharedblocks_block_info() to indicate that we are handling the caching for these blocks.
- Fixed block module was not listed as a dependency.
- Added sharedblocks_publish variable checking to sharedblocks_publish_block_access().
- Added an access callback for the sharedblocks/%/% path.