'text', 'description' => 'longtext', 'briefdescription' => 'text', 'interests' => 'tags', 'website' => 'url', 'externalrss' => 'url', ); $CONFIG->group = trigger_plugin_hook('profile:fields', 'group', NULL, $profile_defaults); } // Shorten text and strip all the tags, only does dumb text shortening function groupsrss_shortenText($text, $max_length) { // Strip tags $text = strip_tags($text); // Check if the length is smaller than max_length if (strlen($text)<=$max_length) return $text; // Shorten the text return substr($text, 0, $max_length-3) . "..."; } // Cache location function getGroupsRssCacheLocation() { global $CONFIG; // See if the caching path is set if (get_plugin_setting('groupsrss_simplepie_cache_location', 'groupsrss')) { return get_plugin_setting('groupsrss_simplepie_cache_location', 'groupsrss'); } return false; } // Initialize global $CONFIG; register_elgg_event_handler('init', 'system', 'groupsrss_init'); // Override for /mod/groups/start.php, Ensure this runs after other plugins register_elgg_event_handler('init', 'system', 'groupsrss_groups_fields_setup_override', 10000); ?>