function twitter_nodeapi in Twitter 5
Same name and namespace in other branches
- 6.2 twitter.module \twitter_nodeapi()
- 6.3 twitter_post/twitter_post.module \twitter_nodeapi()
- 6.4 twitter_post/twitter_post.module \twitter_nodeapi()
File
- ./
twitter.module, line 37
Code
function twitter_nodeapi(&$node, $op) {
switch ($op) {
case 'insert':
global $user;
if ($node->status == 1) {
twitter_post($node, $user);
}
}
}