Commit 4311a082 authored by m.stenta's avatar m.stenta
Browse files

Add the log name field to hook_field_extra_fields().

parent 0ca07d97
......@@ -288,6 +288,30 @@ function log_entity_property_info_alter(&$info) {
);
}
/**
* Implements hook_field_extra_fields().
*/
function log_field_extra_fields() {
$log_types = log_types();
$extra_fields = array(
'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,
),
),
);
}
return $extra_fields;
}
/**
* Implements hook_[entity]_insert().
*/
......
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