function title_form_field_ui_overview in Title 7
Provide settings to enable title field.
1 call to title_form_field_ui_overview()
- title_form_field_ui_field_overview_form_alter in ./
title.module - Implements hook_form_FORM_ID_alter().
File
- ./
title.admin.inc, line 11 - Admin page callbacks for the Title module.
Code
function title_form_field_ui_overview(&$form, &$form_state) {
$entity_info = entity_get_info($form['#entity_type']);
if (!empty($entity_info['field replacement'])) {
$field_replacement_info = $entity_info['field replacement'];
$admin_path = _field_ui_bundle_admin_path($form['#entity_type'], $form['#bundle']);
foreach (element_children($form['fields']) as $field_name) {
if (isset($field_replacement_info[$field_name])) {
$form['fields'][$field_name]['delete'] = array(
'#type' => 'link',
'#title' => t('replace'),
'#href' => $admin_path . '/fields/replace/' . $field_name,
'#options' => array(
'attributes' => array(
'title' => t('Replace %field with a customizable field instance that can be translated.', array(
'%field' => $field_name,
)),
),
),
);
}
}
}
}