[TODO: The output of the hook appears after the closing SGML comment marker
and before the closing </script> element. Is this what is really indended?]
+ Hook Name : javascript_file
+ Locations : www/include/Layout.class.php (function headerJS)
+ Description: Add JS file in header. No params.
+ Offer easy use ot use_javascript('yourfile.js') or declare
+ a specific call of html_use_jquery if needed.
+ See plugin headermenu of example of use.
+
Hook Name : project_admin_plugins
Parameters : group_id - The numeric ID of the group
Locations : www/project/admin/index.php
Parameters : $params['accept'] provides the content-type to be rendered, $params['groupname'] the project name, $params['group_id'] the project ID
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_user_home
Parameters : $params['accept'] provides the content-type to be rendered, $params['username'] the user name
Description: returns in $params['content'] an alternate content for /users/ page and
in $params['content_type'] the actual content-type to return
Hook Name : project_rdf_metadata
- Parameters : $params['prefixes'] : already used RDF prefixes in the form URL => shortname, $params['xml'] already returned xml bits
- Description: returns in $params['prefixes'] and $params['xml'] added prefixes and added bits of RDF+XML to be included in the project's DOAP description
+ Parameters : $params['prefixes'] : already used RDF prefixes in the form URL => shortname, $params['in_Resource'] : already constructed ARC2_Resource instances (read-only)
+ Description: returns in $params['prefixes'] added prefixes, and in the array $params['out_Resources'] new ARC2_Resources including new triples to be included in the project's DOAP description
+
+ Hook Name : role_adduser
+ Parameters : $params['user'] : user added to the role, $params['role'] : role added to the user
+ Locations : common/include/RBAC.php
+ Description: Called when a role is added to an user.
+
+ Hook Name : role_removeuser
+ Parameters : $params['user'] : user removed to the role, $params['role'] : role removed to the user
+ Locations : common/include/RBAC.php
+ Description: Called when a role is removed to an user.
+
+ Hook Name : alt_representations
+ 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 : alt_representations
+ 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_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
+ in $params['content_type'] the actual content-type to return
+
+ Hook Name : content_negociated_frs_index
+ Parameters : $params['accept'] provides the content-type to be rendered
+ Description: returns in $params['content'] an alternate content for /frs/
+ in $params['content_type'] the actual content-type to return
+
+ Hook Name : content_negociated_frs_download_file
+ Parameters : $params['accept'] provides the content-type to be rendered
+ Description: returns in $params['content'] an alternate content for /frs/download.php
+ in $params['content_type'] the actual content-type to return
+
TODO (nerville) : document display_hierarchy
TODO (lolando ?) : document role_normalize, role_translate_strings, role_has_permission, role_get_setting, list_roles_by_permission