Protected Node Statistics block renders empty. The block uses the #value key rather than #markup.
The attached patch corrects that issue and converts the block to use the theme_table function rather than appending html to form the table.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | protected_node-statistics-1506324-3.patch | 5.61 KB | izus |
| protected_node-statistics.patch | 6.51 KB | barrett |
Comments
Comment #1
idflood commentedPatch looks good and is working well. There is just an empty line at the top of protected_node_admin_settings which could have been removed but I don't think this needs a new patch only for that.
Comment #2
zilverdistel commentedI have only one remark:
Code standards should be followed for new patches. Comments should start with a capital and end with a punctuation character ('.', '?', ...).
See http://drupal.org/node/1354 for more details on code comments.
I created a new issue for existing problems concerning the drupal coding standards: http://drupal.org/node/1598330.
Using a theme function for the table is an excellent improvement!
Thanks,
Diederik
Comment #3
izus commentedhi,
i reworked and rebased the patch tobe ok for the last code base, i will merge it in minutes but uploading it here FYI
Comment #4
izus commentedmerged,
Thank you all for help !
Comment #5
izus commentedalso deleted the '»' . in the patch