public function ERViewModeBehavior::settingsForm in Entity reference viewmode selector 7
Generate a settings form for this handler.
Overrides EntityReference_BehaviorHandler_Abstract::settingsForm
File
- plugins/
behavior/ ERViewModeBehavior.class.php, line 22
Class
Code
public function settingsForm($field, $instance) {
$viewmodes = er_viewmode_get_view_modes($field, $instance, TRUE);
$form['enabled_viewmodes'] = array(
'#type' => 'checkboxes',
'#title' => t('Select enabled view modes'),
'#options' => $viewmodes,
);
return $form;
}