GetActiveFeaturesNames
array CSocNetFeatures::GetActiveFeaturesNames( char type, int id );
The method allows setting custom user names for additional features (tab names) in the user profile and by the social network group owner. This method is used for getting custom names for additional features, when such are specified. Static method.
Parameters
Parameter | Description | Available from version |
---|---|---|
type | Object type: SONET_ENTITY_USER - user profile, SONET_ENTITY_GROUP - group. |
|
id | Object ID (user or group). |
Retuned value
The method returns array of user names for the new additional features. When custom user names were not set, they won't be returned.
Example
<? // Select custom names for the group $ID $arRealTabsName = CSocNetFeatures::GetActiveFeaturesNames(SONET_ENTITY_GROUP, $ID); // Result as follows // array // ( // [forum] => My forum // [photo] => My photo gallery // [blog] => My blog posts // ) ?>
© «Bitrix24», 2001-2024