You are here

function modr8_log_view in modr8 6

Same name and namespace in other branches
  1. 5 modr8.module \modr8_log_view()
  2. 7 modr8_admin.inc \modr8_log_view()

menu callback for moderation log.

1 string reference to 'modr8_log_view'
modr8_menu in ./modr8.module
Implementation of hook_menu().

File

./modr8_admin.inc, line 539

Code

function modr8_log_view($op = '', $id = 0) {
  switch ($op) {
    case '':
      return modr8_log_overview();
    case 'node':
      if (is_numeric($id)) {
        $node = node_load($id);
        if (!empty($node->title)) {
          drupal_set_title(check_plain($node->title));
        }
        return modr8_log_overview($id);
      }
      break;
    case 'event':
      if (is_numeric($id)) {
        drupal_set_title(t('Moderation log event'));
        return modr8_log_event($id);
      }
      break;
  }
  drupal_not_found();
}