function social_content_facebook_valid_post in Social Content 7
Validate post.
1 call to social_content_facebook_valid_post()
- social_content_facebook_post_callback in modules/
facebook/ social_content_facebook.module
File
- modules/
facebook/ social_content_facebook.module, line 144 - Social Content: Facebook module.
Code
function social_content_facebook_valid_post($post) {
// Only add direct wall posts.
if (isset($post->to)) {
return FALSE;
}
// Check post contains the required content.
if (!isset($post->message) || !isset($post->picture)) {
return FALSE;
}
return TRUE;
}