Home » Documentation » What is PeoplePods? » SDK Documentation » Object Definitions » Content Object » $Content->setGroup()

$Content->setGroup()

$content->setGroup(1);

Sets the groupId of the content. This function bypasses the isEditable() check, and instead defers to current user's relationship to the group. If the current user is not the owner of or a manager of the group specified, this function will fail.

This function should only be used in the context of a group manager adding a piece of content to a group, as opposed to a group member adding their own content to a group.

  • Discuss This Document

No comments have been posted yet.

Download Download the latest version of PeoplePods!

0.667 Latest Version:
Release Notes

A free membership is required to download PeoplePods.

  Already Registered? Login

Recent Posts from Our Blog

Developer Preview Launch!

I am very excited to announce the launch of PeoplePods version 0.666, THE DEVELOPER PREVIEW! After tons of hacking, I have tweaked the last line of code, and I am finally ready for a wider audience...