That's just a kind of proof of concept.
It requires 2 hooks:
$hooks = array(
array(
'integrate_display_topic',
'Pin_First_Message_Integrate::display_topic',
'SOURCEDIR/PinFirstMessage.integrate.php',
),
array(
'integrate_action_display_after',
'Pin_First_Message_Integrate::action_display_after',
'SOURCEDIR/PinFirstMessage.integrate.php',
),
);
foreach ($hooks as $hook)
add_integration_function($hook[0], $hook[1], $hook[2]);