function osm_blockmanager_apply($mb_arr)
{
    if ($mb_arr[0]->get_id() != 'menubar') {
        return;
    }
    if (($block = $mb_arr[0]->get_block('mbMenu')) != null) {
        include_once dirname(__FILE__) . '/include/functions.php';
        load_language('plugin.lang', OSM_PATH);
        global $conf;
        $linkname = isset($conf['osm_conf']['left_menu']['link']) ? $conf['osm_conf']['left_menu']['link'] : l10n('OSWorldMap');
        $layout = isset($conf['osm_conf']['left_menu']['layout']) ? $conf['osm_conf']['left_menu']['layout'] : '2';
        $link_title = sprintf(l10n('DISPLAY_ON_MAP'), strip_tags($conf['gallery_title']));
        $block->data['osm'] = array('URL' => osm_make_map_index_url(array('section' => 'categories')) . "&v=" . $layout, 'TITLE' => $link_title, 'NAME' => $linkname, 'REL' => 'rel=nofollow');
    }
}
function osm_duplicate_map_index_url($redefined = array(), $removed = array())
{
    return osm_make_map_index_url(params_for_duplication($redefined, $removed));
}