Sources/BestAnswer/BestAnswer.php
/**
	 * Registers the hooks for the visual changes in topic listings (messagesindex and unread lists)
	 */
Registers the hooks for the visual changes in topic listings (messagesindex and unread lists)
Registers the hooks for the visual changes in topic listings ( messagesindex and unread lists )
public static function initTopicListView()
	{
		if (!empty($_GET['action']) && in_array($_GET['action'], array('unread', 'unreadreplies')))
		{
			add_integration_function('integrate_unread_list', '\SychO\BestAnswer\TopicListView::loadBestMsgs', false);
			add_integration_function('integrate_unread_list', '\SychO\BestAnswer\TopicListView::markSolvedTopics', false);
		}
		elseif (isset($_GET['board']) && Settings::isEnabledForBoard((int) $_GET['board']))
		{
			add_integration_function('integrate_message_index', '\SychO\BestAnswer\TopicListView::selectBestMsg', false);
			add_integration_function('integrate_messageindex_buttons', '\SychO\BestAnswer\TopicListView::markSolvedTopics', false);
		}
	}
public static function initTopicListView ( ) { if ( ! empty ( $ _GET [ 'action' ] ) && in_array ( $ _GET [ 'action' ] , array ( 'unread' , 'unreadreplies' ) ) ) { add_integration_function ( 'integrate_unread_list' , '\SychO\BestAnswer\TopicListView::loadBestMsgs' , false ) ; add_integration_function ( 'integrate_unread_list' , '\SychO\BestAnswer\TopicListView::markSolvedTopics' , false ) ; } elseif ( isset ( $ _GET [ 'board' ] ) && Settings :: isEnabledForBoard ( ( int ) $ _GET [ 'board' ] ) ) { add_integration_function ( 'integrate_message_index' , '\SychO\BestAnswer\TopicListView::selectBestMsg' , false ) ; add_integration_function ( 'integrate_messageindex_buttons' , '\SychO\BestAnswer\TopicListView::markSolvedTopics' , false ) ; } }
Registers the hooks for the visual changes in topic listings (messagesindex and unread lists)
Registers the hooks for the visual changes in topic listings ( messagesindex and unread lists )