{"id":27456774,"url":"https://github.com/ericduran/sharedblocks","last_synced_at":"2025-10-18T17:38:07.659Z","repository":{"id":137933604,"uuid":"943518","full_name":"ericduran/sharedblocks","owner":"ericduran","description":"Shared Blocks module for Drupal","archived":false,"fork":false,"pushed_at":"2010-09-27T20:31:30.000Z","size":102,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-15T18:44:50.922Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericduran.png","metadata":{"files":{"readme":"readme.txt","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-09-27T19:36:09.000Z","updated_at":"2017-11-16T19:33:08.000Z","dependencies_parsed_at":"2023-03-11T05:12:18.791Z","dependency_job_id":null,"html_url":"https://github.com/ericduran/sharedblocks","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ericduran/sharedblocks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericduran%2Fsharedblocks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericduran%2Fsharedblocks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericduran%2Fsharedblocks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericduran%2Fsharedblocks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericduran","download_url":"https://codeload.github.com/ericduran/sharedblocks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericduran%2Fsharedblocks/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259813010,"owners_count":22915199,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-15T18:29:36.752Z","updated_at":"2025-10-18T17:38:02.613Z","avatar_url":"https://github.com/ericduran.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"The Shared Blocks Module is awesome!\n\nIf you have a main site with blocks that you want to syndicate across several\nother websites, you need this module!\n\nFeatures:\n* Allows publishing and subscribing of Drupal blocks\n* Changes to published blocks are updated on sites with subscription blocks\n* Published blocks provides a JSON page at blocks/{module}/{delta}\n* Block subscriptions are updated on cron with an adjustable refresh interval\n\n\nJSON format:\n  success: boolean\n  title: string\n  content: string\n  last update: timestamp ?\n  site root: string (could be gleaned from subscription URL)\n\nNotes:\n* Published blocks always represent the view of an anonymous user. Please be sure to check permissions.\n* Relative and root-relative URLs (which start with \"/\") will need to be rewritten.\n* It would be good to provide a JSONP alternative - perhaps by adding extra args to the URL blocks/{module}/{delta}/jsonp/{func}.\n* Likewise, we could also return blocks/{module}/{delta}/html with a full rendered version of the block.\n\nHooks:\n- hook_menu()\n  - callback for configuration page\n  - publish tab, subscribe tab\n  - callback for individual published blocks (blocks/{module}/{delta})\n- hook_cron()\n  - subscribe sites ping publish site on regular basis checking for updates (recent comments)\n- hook_block()\n  - Create subscription blocks\n  \nFuture enhancements:\n- Don't show blocks available to publish that aren't viewable by anonymous. :)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericduran%2Fsharedblocks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericduran%2Fsharedblocks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericduran%2Fsharedblocks/lists"}