get_block('mbSpecials')) != null ) { load_language('plugin.lang', MOSTCOMMENTED_PATH); array_splice($block->data, $position-1, 0, array('most_commented' => array( 'URL' => make_index_url(array('section' => 'most_commented')), 'TITLE' => l10n('most_commented_cat_hint'), 'NAME' => l10n('most_commented_cat') ) ) ); } } function section_init_most_commented() { global $tokens; if (in_array('most_commented', $tokens)) include(MOSTCOMMENTED_PATH . 'most_commented.php'); } add_event_handler('blockmanager_apply' , 'add_link_mostcommented'); add_event_handler('loc_end_section_init', 'section_init_most_commented'); ?>