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.
Hello,
I did some work on this module to get it working on D7. There was some interest in the Stock API module issue queue so I'm just posting the patch. Unfortunately I've only tested it on D7 beta1 and beta2. I don't think anything's changed that will affect these changes, but I haven't had a chance to test it on a proper Drupal 7 v1.0 yet.
Place the patch in the root of the the stock module folder (e.g. stock/stock_convert_to_d7.patch) and, from the command line, use the command patch < stock_convert_to_d7.patch
to patch it.
Hope this helps someone!
Comment | File | Size | Author |
---|---|---|---|
#7 | stock_d7_upgrade_v2.patch | 16.78 KB | drclaw |
#4 | stock_dev_convert_to_d7.patch | 16.72 KB | drclaw |
stock_convert_to_d7.patch | 16.63 KB | drclaw |
Comments
Comment #1
drclaw CreditAttribution: drclaw commentedOh, if you need the stockapi patch, it's in the stockapi issue queue: #936240: Upgrade to D7?
Comment #2
drclaw CreditAttribution: drclaw commentedAlso, the patch is actually for version 1.2, not the dev version. Sorry!
Comment #3
kbahey CreditAttribution: kbahey commentedPatch fails to apply.
I tried against HEAD as well as the tag DRUPAL-6--1. Same results.
Please change it to be against 6.x-1.x-dev, since that may have had some fixes since 1.2.
Comment #4
drclaw CreditAttribution: drclaw commentedTry this one.
Comment #5
kbahey CreditAttribution: kbahey commentedStill the same.
Comment #7
drclaw CreditAttribution: drclaw commentedDamn, just realized I had the diffs backwards! Total rookie mistake, I'm sorry. This one is better. It's for the dev version.
Comment #8
kbahey CreditAttribution: kbahey commentedThanks. That worked, with a modification to the .info part which was not right.
There is now a release for 7.x, but it will not appear until about 6 hours from now.
Remind me tomorrow, by commenting in this issue, if you do not see a 7.x release on the project's main page.
Comment #9
drclaw CreditAttribution: drclaw commentedGlad to see that 7.x release! Will you also do the stockapi module?