integer IPS_GetParent (integer $ObjectID)
ObjectID | The ID of the object |
The ID of the parent of the object |
This function returns the ID of the parent of the object with the ID ObjectID.
echo IPS_GetParent(47359); //returns, e.g.,: 0 for the main category