Commit 9859bdd2 authored by xjm's avatar xjm
Browse files

Issue #3113124 by B2F, Kristen Pol: Incorrect API example about default widget override

(cherry picked from commit da4caf4f)
parent 65b9815a
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
function hook_field_info_alter(&$info) { function hook_field_info_alter(&$info) {
// Change the default widget for fields of type 'foo'. // Change the default widget for fields of type 'foo'.
if (isset($info['foo'])) { if (isset($info['foo'])) {
$info['foo']['default widget'] = 'mymodule_widget'; $info['foo']['default_widget'] = 'mymodule_widget';
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment