Commit 66b9acdc authored by m.stenta's avatar m.stenta
Browse files

Only show name in Field UI if the name is editable.

parent 4311a082
......@@ -297,17 +297,15 @@ function log_field_extra_fields() {
'log' => array(),
);
foreach ($log_types as $type) {
$extra_fields['log'][$type->type] = array(
'form' => array(
// Add log name field to field UI.
'name' => array(
'label' => t('Name'),
'description' => t('The name of the log entry.'),
'weight' => -10,
),
),
);
// Display the name field if names are editable.
if ($type->name_edit) {
$extra_fields['log'][$type->type]['form']['name'] = array(
'label' => t('Name'),
'description' => t('The name of the log entry.'),
'weight' => -10,
);
}
}
return $extra_fields;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment