private static function ShareaholicContentSettings::serialize_settings in Share Buttons, Related Posts, Content Analytics - Shareaholic 7.3
Same name and namespace in other branches
- 8 content_settings.php \ShareaholicContentSettings::serialize_settings()
Get a serialized version of the content settings
Parameters
Object $node The node with settings to serialize:
Return value
String the string representation of the settings
File
- ./
content_settings.php, line 143
Class
- ShareaholicContentSettings
- An interface to the Shareaholic Content Settings database table
Code
private static function serialize_settings($node) {
$settings = array(
'exclude_from_recommendations' => $node->shareaholic_options['shareaholic_exclude_from_recommendations'],
'hide_recommendations' => $node->shareaholic_options['shareaholic_hide_recommendations'],
'hide_share_buttons' => $node->shareaholic_options['shareaholic_hide_share_buttons'],
'exclude_og_tags' => $node->shareaholic_options['shareaholic_exclude_og_tags'],
);
return serialize($settings);
}