You are here

function log_entity_info_alter in Log entity 7

Implements hook_entity_info_alter().

@inheritdoc

File

./log.module, line 239
Log - A general purpose record keeping system.

Code

function log_entity_info_alter(&$entity_info) {
  foreach (log_types() as $type => $info) {
    $entity_info['log']['bundles'][$type] = array(
      'label' => $info->label,
      'admin' => array(
        'path' => 'admin/config/log/types/manage/%log_type',
        'real path' => 'admin/config/log/types/manage/' . $type,
        'bundle argument' => 5,
      ),
    );
  }
}