function title_field_ui_load in Title field UI 7
5 calls to title_field_ui_load()
- title_field_ui_disable_form in ./
title_field_ui.admin.inc - title_field_ui_edit_form in ./
title_field_ui.admin.inc - title_field_ui_field_attach_form in ./
title_field_ui.module - Implements hook_field_attach_form().
- title_field_ui_form_field_ui_field_overview_form_alter in ./
title_field_ui.module - Implements hook_form_FORM_ID_alter().
- _title_field_ui_get_instance in ./
title_field_ui.module
File
- ./
title_field_ui.module, line 163 - Allows administrators to configure the title field from the Field UI.
Code
function title_field_ui_load($entity_type, $bundle) {
$title_field = variable_get('title_field_' . $entity_type . ':' . $bundle, array());
if ($entity_type == 'node') {
$node_type = node_type_get_type($bundle);
if ($node_type->has_title) {
$title_field['label'] = $node_type->title_label;
}
else {
$title_field['label'] = '';
}
}
return $title_field;
}