/** * The purpose of this function is to return all installed message objects (messengers and message type regardless of whether they are ACTIVE or not) * @return array array consisting of installed messenger objects and installed message type objects. */ protected function _get_installed_message_objects() { //get all installed messengers and message_types $EE_MSG = new EE_messages(); $installed_message_objects = array('messengers' => $EE_MSG->get_installed_messengers(), 'message_types' => $EE_MSG->get_installed_message_types()); return $installed_message_objects; }