You are here

function twitter_nodeapi in Twitter 5

Same name and namespace in other branches
  1. 6.2 twitter.module \twitter_nodeapi()
  2. 6.3 twitter_post/twitter_post.module \twitter_nodeapi()
  3. 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);
      }
  }
}