CVS edit link for drasgroup
I am ready to publish a module for D7 that allows for content "publish/unpublished" status to be updated based on a click thru that is generated via email as the content is created.
Drupal 6 or older requires a patch to node module to allow node_api to over-ride node-edit, based on a session variable generated when a link is clicked.
It is relatively trivial in code, but because of the lack of an "access" op in node-api imho hasnt been implemented., so this is new functionality??
thanks for your time
long time drupaler, first time caller
Comments
Comment #1
avpadernoHello, and thank you for applying for a CVS account.
Remember to attach the archive containing the proposed module, as reported in the email message Drupal.org sent you; differently, this application will not proceed.
Comment #2
drasgroup commentedThanks for your fast response with my initial request.
I have been working on converting the logic in this module over to 7.
It is very much still in need of development, but i am looking to see if other people might have comments on how to implement this.
a working drupal 6 version of this module exists, but uses a node_access patch to validate a session variable. i havent gotten
at this point all this does is:
add a validated email address field to node types,
record a checksum type value for each node,
send the link to the email address,
publish the node if the link is accessed.
i need to fill in much functionality. as this is my first submission; i am trying to avoid heading off in a terrible direction due to something i havent come across yet by publishing the framework for comment.
thanks for your time,
-james wilson
Comment #3
avpadernoThose lines need to be removed as they are already added by the packaging script, and duplicating them just confuses the update manager.
The calls to
drupal_uninstall_schema(), anddrupal_install_schema()are not anymore necessary in Drupal 7.As reported in Documenting hook implementations:
It usually not a good idea to unconditionally include code contained in PHP files. If the files contain form handlers, theme functions, or menu callbacks, Drupal core code allows to third-party modules to define which files must be loaded in the implementations of
hook_menu(), andhook_theme(); in these cases, Drupal loads the file only when necessary.t().The hook name is not correct. The code is not formatted as it should.
A form validation handler verifies if the form contains valid values; it doesn't call
drupal_goto().The comment is not comprensible.
The code is not formatted as it should.
Strings used in the user interface should be translated.
Is there an easier way to write that function?
The code is outputting HTML without to use a theme function.
If the method only calls the parent method, then it can be removed.
Comment #4
avpadernoI am closing this application due to lack of activity.
Comment #5
avpadernoPlease read the following links as this is very important information about CVS applications.