canEdit())) { $valid_period = elgg_get_plugin_setting('expires', 'donation')*2629743; $user->donation = time() + $valid_period; system_message(elgg_echo('donation:added')); donation_add_to_river($user, 'donation'); } else { register_error(elgg_echo('donation:add:error')); } forward($_SERVER['HTTP_REFERER']);