field_example_field_widget_error() (http://api.drupal.org/api/function/field_example_field_widget_error/7) is instead an implementation of hook_field_widget_error().

Comments

avpaderno’s picture

Project: Drupal core » Examples for Developers
Version: 7.x-dev »
Component: documentation » Field Example

I am moving the report to the correct issue queue.

rfay’s picture

Thanks for catching this! Contributions/patches are welcome.

VladRM’s picture

Status: Active » Needs review
StatusFileSize
new2.69 KB

Hello,

I attached a patch that addresses the hook_field_widget_error() / hook_field_error() issue.
Also, it fixes some coding standards issues reported by 'Coder' module in normal mode for field_example.module.

Status: Needs review » Needs work

The last submitted patch, field_example.patch, failed testing.

VladRM’s picture

Status: Needs work » Needs review
StatusFileSize
new2.64 KB

OK, giving it another go using unix-style line endings this time.

Status: Needs review » Needs work

The last submitted patch, field_example.patch, failed testing.

rfay’s picture

Thanks for your work on this, @VladRM. The reason it doesn't apply is that patches must be made from the root of the project directory. In this case that means one level higher than you made it (the root of the "examples" directory, not the "field_example" directory).

rfay’s picture

Status: Needs work » Needs review
StatusFileSize
new2.55 KB

Rerolled #5 from root of examples project

rfay’s picture

Status: Needs review » Fixed

Committed to HEAD: http://drupal.org/cvs?commit=415886

Thanks!

VladRM’s picture

Thank you for the tip rfay and also for your work on the examples module.

Status: Fixed » Closed (fixed)

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