Add missing docs for content_negociated_projects_list hook
Parameters : $params['script_name'] contains the SCRIPT_NAME (filtered to work only on /projects or /users for the moment)
Description: returns alternate representations for a particular page in $params['results'] which is populated by the hook users
+ Hook Name : content_negociated_projects_list
+ Parameters : $params['accept'] provides the content-type to be rendered
+ Description: returns in $params['content'] an alternate content for /projects page and
+ in $params['content_type'] the actual content-type to return
+
Hook Name : content_negociated_trove_list
Parameters : $params['accept'] provides the content-type to be rendered
Description: returns in $params['content'] an alternate content for /softwaremap/trove_list.php page and
}
/**
- * headerLinkedDataAutodiscovery() - creates the link+meta links to alternate
+ * headerLinkedDataAutodiscovery() - creates the link+alternate links to alternate
* representations for Linked Data autodiscovery
*/
function headerLinkedDataAutodiscovery() {
$php_self = getStringFromServer('PHP_SELF');
- // invoke the 'alt_representations' hook to add potential meta links (useful for Linked Data)
+ // invoke the 'alt_representations' hook to add potential 'alternate' links (useful for Linked Data)
+ // cf. http://www.w3.org/TR/cooluris/#linking
$params = array('script_name' => $script_name,
'php_self' => $php_self,
'return' => array());