You are here

function log_types in Log entity 7

List of log types.

Parameters

string $type_name: The name of the log type.

Return value

LogType|array Returns the log type(s) requested.

10 calls to log_types()
log_access in ./log.module
Access callback for log entities.
log_add in ./log.pages.inc
Add new log page callback.
log_add_access in ./log.module
Access callback: Checks whether the user has permission to add a log.
log_add_types_page in ./log.pages.inc
Page to select log Type to add new log.
log_entity_info_alter in ./log.module
Implements hook_entity_info_alter().

... See full list

1 string reference to 'log_types'
log_type_form in ./log.admin.inc
Generates the log type editing form.

File

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

Code

function log_types($type_name = NULL) {
  $types = entity_load_multiple_by_name('log_type', isset($type_name) ? array(
    $type_name,
  ) : FALSE);
  return isset($type_name) ? reset($types) : $types;
}