function twig_form_field_ui_field_overview_form_alter in Twig Input Filter 7
Implements hook_form_FORM_ID_alter().
File
- ./
twig.module, line 35
Code
function twig_form_field_ui_field_overview_form_alter(&$form, &$form_state) {
if ($form['fields']['twig_template']['#row_type'] == 'extra_field') {
$form['fields']['twig_template']['edit'] = array(
'#type' => 'link',
'#title' => t('enable'),
'#href' => 'admin/structure/twig/enable-field/' . $form['#entity_type'] . '/' . $form['#bundle'],
);
}
}