-
Committer:
Cael Kay-Jackson
-
Date:
2008-12-25 02:32:37 UTC
-
Revision ID:
z.caeljayj@googlemail.com-20081225023237-ccxqfzwrych6bpnl
- Question:
- Question API file added.
- question.module:
- Fix: Moved hook_access() into com_question.module and org_question.module
so access can be granted properly for all users (not just UID 1).
- @file docblock comment added to try and explicitly explain the
relationship between the various question modules and files their
files.
- Utility API:
- Timestamp floor and ceil functions.
- String repeat with glue function.
- Array binary search functions (value and key searches).
- Integer clamping function.
- Per-load caching for node_locked().
- switch_tld() and get_switched_url() now used preg_replace() instead of
str_replace() so word boundaries can be checked. This ensures that for
example "abrocome.com" becomes "abrocome.org" and not "abroorge.org".
- Resources: Removed RESOURCES_SUPPORTED_NODES. The qtype checks are now
done by using the get_defined_qtypes() function provided by the question
API.
- User Groups: Minor fixes to issues regarding the use of the Drupal admin UID
which affected installation of the module.
- core.module: Minor fixes to issues regarding the use of the Drupal admin UID.
- Various call-time pass-by-reference fixes (deprecated; ampersands removed in
calls).
- General code and docblock tidyup.