function log_field_extra_fields in Log entity 7
Implements hook_field_extra_fields().
File
- ./
log.module, line 322 - Log - A general purpose record keeping system.
Code
function log_field_extra_fields() {
$log_types = log_types();
$extra_fields = array(
'log' => array(),
);
foreach ($log_types as $type) {
// 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,
);
}
// Display the timestamp field.
$extra_fields['log'][$type->type]['form']['timestamp'] = array(
'label' => t('Timestamp'),
'description' => t('The timestamp of the log entry.'),
'weight' => -5,
);
}
return $extra_fields;
}