Commit da4caf4f authored by xjm's avatar xjm
Browse files

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

parent 84f3be3d
......@@ -53,7 +53,7 @@
function hook_field_info_alter(&$info) {
// Change the default widget for fields of type 'foo'.
if (isset($info['foo'])) {
$info['foo']['default widget'] = 'mymodule_widget';
$info['foo']['default_widget'] = 'mymodule_widget';
Supports Markdown
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