{"id":25209941,"url":"https://github.com/backdrop-contrib/behavior_weights","last_synced_at":"2025-04-05T05:24:37.013Z","repository":{"id":246792532,"uuid":"823304506","full_name":"backdrop-contrib/behavior_weights","owner":"backdrop-contrib","description":"Allows you to attach weights to your Backdrop behaviors.","archived":false,"fork":false,"pushed_at":"2024-07-02T19:59:41.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"1.x-1.x","last_synced_at":"2025-02-10T13:18:54.263Z","etag":null,"topics":["backdrop","backdropcms","behavior","cms","weight"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/backdrop-contrib.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2024-07-02T19:23:04.000Z","updated_at":"2024-10-22T14:25:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"caa61f17-921d-44b5-abc1-8a8f8d79ebc9","html_url":"https://github.com/backdrop-contrib/behavior_weights","commit_stats":null,"previous_names":["backdrop-contrib/behavior_weights"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/backdrop-contrib%2Fbehavior_weights","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/backdrop-contrib%2Fbehavior_weights/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/backdrop-contrib%2Fbehavior_weights/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/backdrop-contrib%2Fbehavior_weights/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/backdrop-contrib","download_url":"https://codeload.github.com/backdrop-contrib/behavior_weights/tar.gz/refs/heads/1.x-1.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247290840,"owners_count":20914756,"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":["backdrop","backdropcms","behavior","cms","weight"],"created_at":"2025-02-10T13:18:58.922Z","updated_at":"2025-04-05T05:24:36.987Z","avatar_url":"https://github.com/backdrop-contrib.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Behavior Weights\n\nThis is an API module. Only enable it if another module requires it, or if you\nwant to use the API with your own custom code.\n\n## Installation and Usage\n\n- Install this module using the [official Backdrop CMS instructions](https://backdropcms.org/guide/modules).\n- Enable it.\n\n## Usage\n\nIn your own module's Javascript, you can write something like this:\n\n```\n(function(){\n  Backdrop.behaviors.mymodule_early = {\n    attach: function (context, settings) {..},\n    weight: -11\n  };\n})();\n```\n\nor\n\n```\n(function(){\n  Backdrop.behaviors.mymodule_early.weight = -9;\n})();\n\n```\n\nThe default weight is 0. Anything with a smaller weight will run earlier.\nAnything with a higher weight will run later.\n\n## Issues\n\nBugs and Feature requests should be reported in the [Issue Queue](https://github.com/backdrop-contrib/behavior_weights/issues)\n\n## Current Maintainers\n\n- [Laryn Kragt Bakker](https://github.com/laryn/)\n\n## Credits\n\n- Ported to Backdrop CMS by [Laryn Kragt Bakker](https://github.com/laryn/)\n- The Drupal 7 version is created and maintained by [Andreas Hennings](https://github.com/donquixote)\n\n## License\n\nThis project is GPL v2 software. See the LICENSE.txt file in this directory for\ncomplete text.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbackdrop-contrib%2Fbehavior_weights","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbackdrop-contrib%2Fbehavior_weights","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbackdrop-contrib%2Fbehavior_weights/lists"}