function quickedit_field_formatter_info_alter
quickedit_field_formatter_info_alter(&$info)
Implements hook_field_formatter_info_alter().
Quick Edit extends the @FieldFormatter annotation with the following keys:
- quickedit: currently only contains one subkey 'editor' which indicates which in-place editor should be used. Possible values are 'form', 'plain_text', 'disabled' or another in-place editor other than the ones Quick Edit module provides.
File
- core/modules/quickedit/quickedit.module, line 107
- Provides in-place content editing functionality for fields.
Code
function quickedit_field_formatter_info_alter(&$info) { foreach ($info as $key => $settings) { // Set in-place editor to 'form' if none is supplied. if (empty($settings['quickedit'])) { $info[$key]['quickedit'] = array('editor' => 'form'); } } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!quickedit!quickedit.module/function/quickedit_field_formatter_info_alter/8.1.x