{"id":20766734,"url":"https://github.com/chapter-three/require-to-publish","last_synced_at":"2026-04-24T14:33:26.748Z","repository":{"id":144984343,"uuid":"14411024","full_name":"chapter-three/require-to-publish","owner":"chapter-three","description":null,"archived":false,"fork":false,"pushed_at":"2016-04-12T20:45:42.000Z","size":228,"stargazers_count":1,"open_issues_count":9,"forks_count":2,"subscribers_count":39,"default_branch":"master","last_synced_at":"2025-01-18T06:27:33.094Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chapter-three.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-11-15T00:29:33.000Z","updated_at":"2014-07-15T19:35:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"0ba9f28a-ed75-4e7d-af6d-ad83a71d963c","html_url":"https://github.com/chapter-three/require-to-publish","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chapter-three%2Frequire-to-publish","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chapter-three%2Frequire-to-publish/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chapter-three%2Frequire-to-publish/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chapter-three%2Frequire-to-publish/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chapter-three","download_url":"https://codeload.github.com/chapter-three/require-to-publish/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243094252,"owners_count":20235479,"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":"2024-11-17T11:25:53.185Z","updated_at":"2025-12-16T12:53:11.812Z","avatar_url":"https://github.com/chapter-three.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Require-to-publish\n==================\n\nA Drupal module which allows required fields to remain empty as long as the node is unpublished. Also, it creates a \"Save as Draft\" button.\n\nThere is a D6 module which does this already: https://drupal.org/project/required_for_pub\n\nTry to make compatible with Workbench, which handles status per revision rather than per node. Allow Workbench to set \"require\" level to an arbitrary state? (For instance, not required for \"Draft\" but required for \"Needs Review\" or \"Published\"?)\n\n\n\n\n\nThis module does more than just create a \"Save as Draft\" button. \n\nIt allows any field to be configured as \"required for content to be published.\" When entering data on the node add or edit form, \nuser will see \"*Required for content to be published\" right below the field label.\n\nMoreover, when a user tries to publish the content without entering data for fields that are \"required for content to be published\",\n2 things are triggered: \n1. An error message stating the fields that require data, and \n2. the field itself will be \"highlighted\" in red, \nbehaving much like the Drupal core's red highlight for fields configured to be \"required.\"\n\nExample use cases:\n\n1. A donation cannot be submitted (or published ) until the donation amount is selected from  1 of say, 3 choices ($100, $50, or $10).\n\n2. A Review on a article cannot be submitted unless a grade or rating is given (A, B, C, D , F  OR 5 stars, 4 stars or 3 stars)\n\nWhen no field has been configured for the entire node, the \"Save as Draft\" button will not display.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchapter-three%2Frequire-to-publish","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchapter-three%2Frequire-to-publish","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchapter-three%2Frequire-to-publish/lists"}