Below is the patch against head, that fixes a bunch of issues in the queue, plus many more:
* more drupalapi changes
* one argument drupalapi fixed
* changed drupal_add_css to work properly, along with css
* fix Undefined index in coder_review_page_form() when file doesn't exist (eg: typo)
* fixed parse_ini to drupal_parse_info file in coder_review_7x.inc
* hook drupalapi calls fixed
* hook drupalapi calls fixed
* fix non-existing array in coder_upgrade_conversions_form()
* update phpapi in the theme
* fix Undefined index: dependencies in _coder_review_7x_optional_block_review_callback()
* change theme output for review functions
* updates from d.o #s 565280 565610 569990
* 601372 575738 536194 583136 575734 patches from d.o
* theme changes to d7
* changed the variables[0] to 'form'
* setting default values for hook_theme arguments arrays
* coder_review_theme fix
* theme function changes
This patch should make coder work for drupal 7. We haven't added anything in this patch that changes the rules for conversion found here:
http://drupal.org/node/394070
We still need to tackle the ones that aren't complete yet.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | coder.patch | 1.41 KB | seutje |
| #8 | 607592.patch | 121.42 KB | stella |
| #4 | coder-head-to-d7_v3.patch | 113.77 KB | japerry |
| #2 | coder-head-to-d7.patch | 113.77 KB | japerry |
| coder-head-to-d7.patch | 105.79 KB | japerry |
Comments
Comment #1
sunI stopped reviewing. You can fix below already, but what I really need is diff -up
What's that? Please remove.
Please revert.
We can return directly here.
I'm on crack. Are you, too?
Comment #2
japerryupdated per requests
Comment #3
sunWe can use #attached here.
Can't we use #theme here now?
Could use some more docs/description about the purpose of this function.
Use @see to refer to other functions.
@note is a unsupported directive.
(and elsewhere) Please don't align these in a column.
Missing trailing comma.
(and elsewhere) New review rules do not belong into this patch.
Ditto.
Hmmmm.... I thought I committed these test updates for coder_format a long time ago?
I'm on crack. Are you, too?
Comment #4
japerrynew update of the diff....
addressed the issues above, except for the following
That change is not adding a rule but porting a change from the existing rule.
Comment #5
japerrycurrent working bzr of the d7 port:
https://code.launchpad.net/~d7cx/d7cx-coder/DRUPAL-7--1
Direct tar.gz download: http://launchpad.net/d7cx-coder/trunk/coder-d7-beta1/+download/coder-7.x...
Comment #6
sunThat was, somehow, the same patch again? (same size, etc?)
Comment #7
stella commentedFirst of all, thanks! However rather than one big patch merging in a whole bunch of things from different issues, I would have much rather seen many smaller patches, each dealing with one issue or one type of issue. One large patch covering so many different items makes it much harder to review.
I'm reviewing the patch now, but I already see items that will be dropped and handled separately in other patches / issues. For example, there's a fair number of new reviews in there which shouldn't really be in a patch to make coder work with latest D7 HEAD. It also includes the patch from #575738: false positives for hook sniffing which isn't the right solution as it won't work in every scenario (or even most of them), so that's going to have to be dealt with separately and in the original issue opened for it.
Comment #8
stella commentedOkay this is what I committed:
- changed menu paths so it is more in line with new D7 menu structure
- updated arguments to theme() function calls and definitions.
- changed drupal_add_css/js calls to use #attached instead.
- changed #markup theme() calls to use #theme.
- coding style fixes.
- added CHANGELOG.txt files
I did not commit:
- the new reviews
- the patch for #575738
- the css change : can you explain why this is needed?
- the change to coder_upgrade
- changes to coder_format - sun you may want to review those changes first
These can be dealt with in other issues.
I've attached the patch in case you want to see what was added.
Thanks for all your hard work! I appreciate it.
Cheers,
Stella
Comment #10
seutje commentedNoticed hook_theme() was a bit wonky, causing unknown index errors all over, so I fiddled around with it until I had a result I could use to help me start porting themes to D7
still getting a ton of errors like
Warning: parse_ini_file(sites/all/themes/fusion/fusion_core/template.info): failed to open stream: No such file or directory in _coder_review_7x_optional_block_review_callback() (line 999 of C:\xampp\htdocs\fusion\sites\all\modules\coder\coder_review\includes\coder_review_7x.inc).which I don't rly understand as this is suppose to be template.php, not template.info
but at least now I get somewhat of a review :D
I hope these changes make sense and I'm affraid the rest is out of my skill level
Comment #11
cedarm commented#seutje - What you're noticing seems to be the same as #615786: Update according to hook_theme api changes