I would like several of my developed modules public.
At the moment are 2 modules:
Explorer8 modus
More node buttons
These modules are developed for Drupal 7.
| Comment | File | Size | Author |
|---|---|---|---|
| #25 | more_node_buttons-7.x-1.3.tar_.gz | 9.16 KB | quiptime |
| #10 | more_node_buttons-7.x-1.x-dev.tar_.gz | 9.04 KB | quiptime |
| #7 | more_node_buttons-7.x-1.x-dev.tar_.gz | 8.8 KB | quiptime |
| #9 | more_node_buttons-7.x-1.x-dev.tar_.gz | 8.8 KB | quiptime |
| #2 | explorer8_modus-7.x-1.x-dev.tar_.gz | 3 KB | quiptime |
Comments
Comment #1
quiptime commentedThis module add an Cancel and an Save and continue button to node edit forms.
Requirements
--------------------------------------------------------------------------------------
This module is written for Drupal 7.0+.
Installation
--------------------------------------------------------------------------------------
Copy more_node_buttons.module to your module directory and then enable on the
admin modules page.
Administration
--------------------------------------------------------------------------------------
1. Go to administer content types admin/structure/types and edit a content type.
In section "Submission form settings" please choose in "Manage buttons" the
option to use the Cancel and the Save and continue button.
Comment #2
quiptime commentedThe module "Explorer8 modus" allows to define how the Explorer 8 web site shows.
Requirements
------------------------------------------------------------------------------
This module is written for Drupal 7.0+.
Installation
------------------------------------------------------------------------------
Create a directory modules/explorer8_modus and copy all the module's files into
it. Enable the module via the administer modules page.
Administration
------------------------------------------------------------------------------
1. In admin/user/permissions define who can administrate the module.
2. Administer the module in admin/settings/explorer8_modus.
Comment #3
AjK commentedPlease only change the "status" setting of the issue and not the title or component. Thanks.
Comment #4
avpadernoThere is no need to set Drupal variables to their default value; the second parameter passed to
variable_get()is the value returned by the function if the variable is not set.The function can simply be rewritten as
This saves
2n - 1queries, wherenis the number of content type defined.See the coding standards on how the code should be written.
Validation functions are never removed; you can add more validation functions, but you don't remove the ones set from other modules, which could stop to work.
Validation functions don't redirect to a different page; their task is to simple validate the input, and report an error if something is wrong.
Comment #5
quiptime commented@KiamLaLuno,
thanks for your short time feedback.
1., 2. and 3. is ok. I will correct the code for these parts.
But,
points 4. and 5.: Here there is a problem that requires a reasonable solution.
Drupal's FAPI knows no solution to disable a validation (temporarily). I do not know any solution for that. One must see the code in context:
One can see that I just temporarily disable validation!
And, it is not validation required, you can realize a redirect at this point. Remember, this is the Cancel button action. There is no other form logic required.
Why should we in such a situation does not realize a redirect in the validation function?
I think my code is not a hack but a solution in coherence with the limitation of FAPI.
Comment #6
avpadernoThis is what Drupal 5.x to 6.x FormAPI changes reports:
To the question "is it possible to disable the form validate?" I would reply that is possible.
If you are adding a new form button, and you don't want the form is validated when the user clicks on it, you define an empty function that you then use as validate function for that button. You should define a submission function for that button too, I think.
Comment #7
quiptime commentedNow I have realized all the tasks. The "More node buttons" module code is rewritten.
@KiamLaLuno, thank you for your inspiration. :-)
Edit:
Don't use attached file from this post. Please use attachement from post #9.
Comment #8
superbaloo commentedComment #9
quiptime commentedSorry, my attached file in post #7 has wrong code.
Please use this attached file.
Comment #10
quiptime commentedThe reorganized validation handling produces a problem.
After the button "Save and continue" was clicked produce any further clicks with any button a form error. This error resulted from the functions node_validate() -> node_last_changed().
I have this problem solved.
Comment #11
avpadernoComment #12
avpadernoI am changing the status as per comment #10.
EDIT: I misunderstood the last comment made from the OP.
Comment #13
avpadernoComment #14
avpadernoAs there is not a stable version of Drupal 7, I would wait before to approve this module; Drupal 7 code could be changed before to be stable, and the code of this module should be changed as well.
Comment #15
avpadernoComment #16
avpadernoThe file LICENSE.txt needs to be removed; Drupal.org CVS doesn't allow to commit that file.
I am changing the status, so other people can review the module.
Comment #18
avpadernoI am adding a review tag.
Comment #19
quiptime commentedWhat is mi_ne_recenzias?
The case revolves in a circle.
I would like contribute to another module. But this is not possible. The situation here is in stop status.
Now I must be here every day to see that nothing happens. On the day when drupal 7 is completed, it may be something that will happen eventually. And then, it may still need a long time until someone makes a recension.
Should I register myself as a different user to contribute an other module? I think this is not the right way.
Comment #20
avpadernoNo, you should not. Just upload here the new module.
Comment #21
avpadernoA note about who approves CVS applications: I am not the only one who does it; there are other people who can do it.
If I am not going to approve this application, this doesn't mean the application will never be approved (or rejected). I am simply not following it because a personal attack made from the OP to me.
Comment #22
avpadernoIt would be better to use a different value, when the content type can be determined; is a value that can be used as identifier for a content type, and the module would not be able to understand the different between the settings for an existing content type, and the default values used when it is not possible to retrieve the content type being edited.
Also, the fact it is not possible to determinate the content type in a content type form is a error condition that cannot be handled; the module should simply exit, in such case.
The value used for
#accessis the default one, and it should not be explicitly set.more_node_buttons_form_alter()there are two different variables that are used to contain the content type being edited. Was not enough to use a single variable?A validation function doesn't call the submission function, as that is already done from Drupal core code. First, it's conceptually not correct (a validation function is supposed to just verify if the entered data is acceptable; secondary, with this code the submission function would be called twice).
If the code needs to act differently basing on the submission button the user clicked on, then it should attach a different submission function for each of the buttons it needs to react to. This is clearly stated in Form buttons can define custom #submit and #validate handlers.
preg_match()will return 1 even if the value of the variable$keycontains a string like'dummy_node', or'not_a_dummy_node'; I am not sure that is wanted.Even in the case there would be the need to replace any occurrence of the string
'dummy', it would be enough to use PHP string functions (strpos(), andstr_replace(), i.e.).Comment #23
avpadernoThe points of my previous comment are not related with the version of Drupal for which the module is thought for.
There is no need to wait until Drupal 7 will have its first stable official release, because those points are valid now, and they will be valid also later.
Comment #24
avpadernoThe OP has not replied in more than 2 weeks. I am marking this report as .
Comment #25
quiptime commentedHere are the next round. The next level of "More node buttons" module.
Comment #26
avpadernoThe application has been marked as since 5 months ago. Please open a new application.
Comment #27
quiptime commentedWhat does it mean?
Apply for contributions CVS access
or
New CVS applications review
Comment #28
avpadernoThe current application has been already rejected, as per comment #26; you need to follow the procedure you followed to apply for a CVS account.
Comment #29
jcmc commentedHello Kiam,
quiptime can't apply or reapply for a CVS account because he gets the message:
<strong>Failure to read and follow this procedure can result in your application being marked as "won't fix".</strong>If exists another way to apply or reapply for the account please give this information free. Maybe it is a mistake and you don't know what hapens.
I please you to clarify this mistake or wrong funktionality from cvs account request system.
I thank you in advance.
Regards
Juan Carlos
Comment #30
jcmc commentedIt is now possible,
thanks
Juan Carlos