save.php 489 B

1234567891011121314151617181920
  1. <?php
  2. /**
  3. * Save / Change Action
  4. **/
  5. //Get Tags from Taginput
  6. $follow_tag_input = get_input('followtags');
  7. //Get Notification Settings
  8. $notify_input = get_input('notifyfollow');
  9. //Save the FollowTags in the TagObj
  10. if (!follow_tags_save_follow_tags($follow_tag_input, follow_tags_get_tag_guid(elgg_get_logged_in_user_guid()), $notify_input)) {
  11. register_error(elgg_echo("follow_tags:save:error"));
  12. } else {
  13. system_message(elgg_echo("follow_tags:save:message"));
  14. }
  15. forward(REFERER);