/** * onContentAfterSave * * @param object $context The context of the content passed to the plugin. * @param object $article A JTableContent object * @param bool $isNew If the content is just about to be created * * @return boolean */ public function onContentAfterSave($context, $article, $isNew) { // Autotweet Advanced Attrs parent::onContentAfterSave($context, $article, $isNew); if (($context == 'com_content.article' || $context == 'com_content.form') && ($isNew || $this->post_modified || $this->_post_modified_as_new == $article->id || $this->advanced_attrs && $this->advanced_attrs->postthis == self::POSTTHIS_YES) && ($article->featured > 0 || 0 == $this->post_featured_only) && 1 == $article->state) { $this->postArticle($article); } return true; }