Description: This module aims to help developers when they work with webform, easier to retrieve the webform by their own defined keys. The work was to add an extra key (unique) to webform table, which takes {node}.nid as its primary key.

Project page: http://drupal.org/sandbox/dk129/1367780

Git: dk129@git.drupal.org:sandbox/dk129/1367780.git

Version: Drupal 7

Dependencies: webform

Comments

patrickd’s picture

You got a few coding style issues, please try to fix them (See http://ventral.org/pareview/httpgitdrupalorgsandboxdk1291367780git, you can use this site your self to re-review it)

If you have any questions on this, please ask!

dk129’s picture

Hi,

I just reviewed and made some changes to the code. I've made it passes the module coder review.

Can you review it again?

Much thanks,

Khoa

patrickd’s picture

for some reason the online service hung up, but after a reboot it seems to work again :/
http://ventral.org/pareview/httpgitdrupalorgsandboxdk1291367780git

dk129’s picture

raynimmo’s picture

Priority: Major » Normal

Changed priority from 'major' to 'normal'.

Your priority should not be at 'major' it should only be at 'normal'. The former setting is only for projects that have been awaiting review for 2 weeks or more in line with the project review guidelines.

vernond’s picture

Status: Needs review » Needs work

Hi

Please be more descriptive in README.txt about how the module is useful and how it can be used (see Provide a useful README.txt on http://drupal.org/node/161085). Obviously you think its a useful module to have, but I cannot see why I might want to install it. Share your enthusiasm with us.

Please add package = Webform to the .info file so that users can easily find this module under the Webform heading on the Modules page when installing (see Follow package naming conventions on http://drupal.org/node/161085).

dk129’s picture

Hi

I've added some descriptive explanation of this module in README.txt
.info file was added the correspondent package also.

vernond’s picture

@dk129: I've been playing with your module and I have two questions:

1) Why is this module Webform-specific? Other nodes types also get programatically loaded etc. It could be more general, i.e. act on the node table, rather than the webform table.

2) Do we really need a userkey to identify a node? I mean, it would be as easy (or difficult) to use the node title. The node table already has a node_title_type key.

vernond’s picture

Status: Needs work » Needs review

Oops, should have changed status earlier.

rudiedirkx’s picture

Status: Needs review » Needs work

Two things.

  1. If you alter another module's table, you should also alter the database's schema: hook_schema_alter. You do this for the next module and to always have a matching schema.
  2. This doesn't add a URL thing? The interface is only programmatic?
rudiedirkx’s picture

When calling the function with a key that doesn't exist:

Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 178 of /var/www/quadrupal7/includes/entity.inc).
Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->cacheGet() (line 354 of /var/www/quadrupal7/includes/entity.inc).
Notice: Trying to get property of non-object in webform_client_form() (line 1694 of /var/www/quadrupal7/sites/all/modules/contrib/webform/webform.module).
Notice: Trying to get property of non-object in webform_client_form() (line 1707 of /var/www/quadrupal7/sites/all/modules/contrib/webform/webform.module).
Notice: Trying to get property of non-object in webform_client_form() (line 1713 of /var/www/quadrupal7/sites/all/modules/contrib/webform/webform.module).

This is bound to happen, so should produce less PHP Warnings + Notices. The result is a renderable array, that's not a webform.

patrickd’s picture

Status: Needs work » Closed (duplicate)

Closing as applicant wants to apply with another module:
http://drupal.org/node/1498566

avpaderno’s picture

Priority: Major » Normal
Status: Needs review » Closed (duplicate)
Related issues: +#1498566: [D7] Image lazy
avpaderno’s picture

Title: Webform userkey » [D7] Webform userkey