<?php

/**
 * Implements hook_menu().
 */
function mkbh_archive_page_menu()
{
    $items['arkiv'] = [
        'title' => 'Arkiv',
        'page callback' => 'mkbh_archive_page_callback',
        'access arguments' => ['access content'],
        'type' => MENU_CALLBACK,
        'file' => 'mkbh_archive_page.pages.inc',
    ];

    return $items;
}

/**
 * Implements hook_theme().
 */
function mkbh_archive_page_theme($existing, $type, $theme, $path)
{
    return [
        'mkbh_archive_page' => [
            'variables' => [],
            'template' => 'templates/mkbh-archive-page',
        ],
    ];
}

/**
 * Implements hook_preprocess_HOOK().
 */
function mkbh_archive_page_preprocess_html(&$vars)
{
    if (current_path() == 'arkiv') {
        $vars['classes_array'][] = 'page-custom';
        $vars['classes_array'][] = 'page-archive';
    }
}
