get the ptid from the aid passed in the URL and pre-filter search results?
need aid for the article title to search on anyway...
xarVarFetch('aid', 'id', $aid, NULL, XARVAR_NOT_REQUIRED)
xarVarFetch('ptid', 'id', $ptid, NULL, XARVAR_NOT_REQUIRED)
xarVarFetch('title', 'str', $title, NULL, XARVAR_NOT_REQUIRED)
xarModAPIFunc('articles','user','get',array('aid'=>$aid))
$articleinfo['title']
$articleinfo['pubtypeid']
$title
str_word_count($title, 1)
array()
$q_array[] = $word
implode(" ", $q_array)
$title
#$content_text#
array('extrainfo' => array('q' => $q,
'module' => "search",
'ptid' => $ptid,
'search' => 1,
'template' => "block"),
)
xarModFunc('articles','user','search', $args)
#$articles#