Currently the function field_tools_field_clone_form is not using field_tools_options_entity_bundle but it is using the same code. This can be replaced with a call to the function.

Also field_tools_options_entity_bundle will make an option for the current bundle. This should not be an option.

will attach a patch....

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tedbow’s picture

Status: Active » Needs review
FileSize
2.44 KB

Attached patch - ran through coder review

joachim’s picture

Status: Needs review » Needs work

A few nitpicks below...

(I remember back when I was fairly new to Drupal my co-maintainers nitpicking my patches for layout issues like this, so I appreciate it's probably tedious :/ the coding standards do become an ingrained habit with time though... :)

+++ b/field_tools.admin.inc
@@ -202,16 +196,23 @@ function field_tools_field_clone_form_submit($form, &$form_state) {
  * @return

Needs an extra line before the @return.

+++ b/field_tools.admin.inc
@@ -202,16 +196,23 @@ function field_tools_field_clone_form_submit($form, &$form_state) {
+      // don't show the current bundle

Comment should start with a capital and end with a full stop.

Check this still applies, as I seem to remember tweaking some of the docs in the last patch of your I committed.

I've given you commit access, so once you've tweaked it and checked it and everything, go ahead and commit it :D

tedbow’s picture

A few nitpicks below...

(I remember back when I was fairly new to Drupal my co-maintainers nitpicking my patches for layout issues like this, so I appreciate it's probably tedious :/ the coding standards do become an ingrained habit with time though... :)

No worries. I just reread through the coding standards. I have been just maintaining a couple modules by my self for a while now so I haven't anyone really looking over my code(though I do use coder review).

I fixed those problems and ran through coder again.

I have attached the updated patch and will commit it.

Thanks

tedbow’s picture

Status: Needs work » Fixed

Committed :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.