Unofficial SMF API Documentation

XML / AJAX

News.php

integrate_xmlfeeds

call_integration_hook('integrate_xmlfeeds', array(&$subActions))
Type Parameter Description
array &$subActions desc
Called from
ShowXmlFeed() in ./Sources/News.php
Notes
Since 2.1

integrate_xml_data

call_integration_hook('integrate_xml_data', array(&$xml_data, &$feed_meta, &$namespaces, &$extraFeedTags, &$forceCdataKeys, &$nsKeys, $xml_format, $subaction, &$doctype))
Type Parameter Description
array &$xml_data desc
array &$feed_meta desc
array &$namespaces desc
array &$extraFeedTags desc
array &$forceCdataKeys desc
array &$nsKeys desc
array $xml_format desc
array $subaction desc
array &$doctype desc
Called from
buildXmlFeed() in ./Sources/News.php
Notes
Since 2.1

integrate_fix_url

call_integration_hook('integrate_fix_url', array(&$val))
Type Parameter Description
string &$val A string containing a possible URL
Called from
fix_possible_url() in ./Sources/News.php
Notes
Since 1.1

Xml.php

integrate_XMLhttpMain_subActions

call_integration_hook('integrate_XMLhttpMain_subActions', array(&$subActions)
Type Parameter Description
array &$subActions Hashmap of subactions ($_GET['sa'])
Called from
XMLhttpMain() in ./Sources/Xml.php
Notes
This is a regular PHP callable, called with call_user_func() As such, static methods are allowed(MyClass::myMethod).
The result is that, when you navigate to ./index.php?action=xmlhttp;sa=mysubaction, the function myFunction() is called.

Example usage

function my_xml_subactions(&$subActions)
{
	$subActions['mysubaction'] = 'myFunction';
}

Suggest an edit to this page on GitHub