Install
Works with Drupal: ^10.3 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
35.3 KB
MD5: 0902c5cb083f0a09f9335d466f7a3176
SHA-1: 7fa3f98839c91bf7892aa63ae562b7915017a3ed
SHA-256: 9e3598c29a661dbee82af57d8bf3540bb8656ad448f28b10013491f847a2edbd
Download zip
59.07 KB
MD5: 5c276db7d4d278332bbdc2df5038700e
SHA-1: 4b85e85ffb582c0080c880a63e0b301fc1799a84
SHA-256: 6da91422258ab27f3f166f3b0d5368e08d120f93d988b089b0857b2944d715e3
Release notes
First release.
firearm_specs.parserservice, a wrapper of the gunsnprices/gunsnprices 0.1 library: reads firearm or ammunition, brand, model, calibers, magazine capacity, barrel length, rounds per box and cost per round from product titles.- Field formatters for plain text fields: "Firearm specs" (a list of specs) and "Firearm spec (single value)".
- "Cost per round" formatter for decimal, float and integer fields. The round count comes from the item title, another text field or a number field.
- Firearm Specs for Commerce submodule: "Cost per round" formatter for Drupal Commerce price fields, with the round count from the variation or product title.
- Settings page: barrel length unit, optional links from caliber names to their GunsNPrices.com price comparison pages, and a box to try the parser.
firearm_specs()Twig function.- Status report entry for the parser library.
- Drupal 10.3 to 11, PHP 8.1 and later.