Just a simple way to add previous/next node links to a node content. Actual when displaying full node content.
Adds two links to the previous and next node of the same type and status. These links are added as a field to the node content so it could be hidden or displayed in a different way in various node displays
Sandbox Project
http://drupal.org/sandbox/darth_raven/2004630
Repository Link
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/darth_raven/2004630.git sequential_nodes
Comments
Comment #0.0
Darth Raven commentedAdded H2 tags to headers
Comment #1
brice_gato commentedHello à Darth,
1 . Your files missed documentation.
2 . LINE 7 of sequential_nodes.inc : _sequential_nodes_page_link(): Do not use db_select() for simple static queries, use db_query() instead.
3 . It is not necesary to declare files[] because you do not have the Class into the files sequential_nodes.admin.inc and sequential_nodes.inc
You have many errors, take a look on http://ventral.org/pareview/httpgitdrupalorgsandboxdarthraven2004630git
Comment #2
brice_gato commentedComment #3
Darth Raven commentedDocumentation and comments added, code style fixed
Thank you for the review.
Comment #4
PA robot commentedWe are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #5
Caseledde commentedHi,
I found some issues:
1) Implement hook_uninstall()
Create a file called sequential_nodes.install and implement hook_uninstall() to delete all variables stored by sequential_nodes.
2) Names of variables
You should name your variable with a prefix, like 'sequential_nodes_next_link' to avoid namespace collisions.
3) prev-next-link.tpl.php
You should use two spaces instead of tabs.
Thats all for now.
Happy coding.
By the way: user_access() is the default acces callback in hook_menu(). So you don't have to specify it.
Comment #6
Caseledde commentedComment #7
Darth Raven commentedImplement hook_uninstall()
Hook realized, all unnecessary variables are deleted during uninstallation.
Names of variables
All variables and corresponding admin form fields have been now prefixed.
prev-next-link.tpl.php
Tabs are removed, spaces are used instead.
Thank you for the review
Comment #7.0
Darth Raven commentedchange Git repository link
Comment #7.1
Darth Raven commentedAdded review link
Comment #7.2
Darth Raven commentedAdded review link
Comment #8
Darth Raven commentedAdded review bonus tag
Comment #9
klausimanual review:
This is an access bypass issue and therefore a security blocker. And please don't remove the security tag, we keep that for statistics and to show examples of security problems.
Comment #10
Darth Raven commentedAdded node_access tag
Thank you for the review.
Comment #11
klausiVery good, looks RTBC to me now. Also removed the review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Assigning to sreynen as he might have time to take a final look at this.
Comment #11.0
klausiAdded Review
Comment #11.1
Darth Raven commentedAdded review link
Comment #11.2
Darth Raven commentedreview link
Comment #12
Darth Raven commentedAdded PAReview: review bonus tag
Comment #13
klausino objections for more than a week, so ...
Thanks for your contribution, Darth Raven!
I updated your account to let you promote this to a full project and also create new projects as either a sandbox or a "full" project.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and get involved!
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
Thanks to the dedicated reviewer(s) as well.
Comment #14.0
(not verified) commentedreview link