Skip to content
Snippets Groups Projects
Commit 9859bdd2 authored by Jess's avatar Jess
Browse files

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

(cherry picked from commit da4caf4f)
parent 65b9815a
Branches
No related tags found
No related merge requests found
......@@ -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';
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment