Downloads

Download tar.gz 54.41 KB
MD5: 996111fb389570ee0cf0e653a2dd5cfb
SHA-1: 5f78b660369a24b8ac2d98a07429dc6cce426865
SHA-256: 08fabff5000dd243291de13ae1ca41624807dc19d0b63db6d1a55e7f9dc1448d
Download zip 59.96 KB
MD5: 09741e11f3640d92d990268069d8d1fb
SHA-1: cb87032e77ff7f71555345b80e54dc20880454e9
SHA-256: 098db278e89b82349f85b3f6b6ffbb382bb999a112776fa004e2f4a7f99ff9c3

Release notes

Brand new code.

Edits History (before submit to Git)

(top is most recent)
Period default set to 'months';
Consistent use of node_access_acquire_grants(), cache_clear_all(); Comments cleanup;
Soft dependency on Date API, Date Popup modules;
Integration with content_permissions module (users already given access to node fields by permissions won't be denied access);
Message:
Fixed users/%/content_orders showing two items with same fields (only one should list fields) for one ACL handler delay record (uaids list is processed, but fields are not decoded back from uaid);
Bugfix - replacing already granted/infinite access with delay+expiration dates+force added delay but did not remove the grant and expiration (leaving a misleading message that 2 delay records were removed); Comments cleanup;
Further improvements arount date formats handling;
Option to Remove ACL feature on node/access control page;
Date/time handling, timezone conversions;
Moved date conversion to _ucca_date_to_timestamp() function;
Option to Force/replace all in admin interface;
Changed _uc_cck_access_acl_is_field_controlled() _uc_cck_access_acl_is_node_controlled() to rely on ACL records; This also fixes admin entries with fields that don't have product feature; Performance of uc_cck_access_acl_preprocess_node();
Verbiage 'indefinite' replaced with 'unlimited time'; Inserted a themable list of content into product nodes with uc_cck_access features;
UI cleanup; Messages improved (user name and link instead of uid, node link);
Major feature complete - content_access_page ACL/CCK administration integrated with delays/expirations; Added multi-level keying in uc_cck_access_get_schedule(), though it was first intended for, but left unclaimed in content_access_page improvements;
Prepare variables info on delayed access for node.tpl.php; Comments cleanup;
Javascript to disable irrelevant fields on admin forms;
Usability and UI improvements;
Consolidated items by access_id for non-admin (user) list view;
Usability and UI improvements;
More informative nid_autocomplete;
No javascript fallback for AHAH;
Implemented admin controls on uc_cck_access_user_content_orders_form;
Disable subform validation when subform is disabled; Partial implementation of per-item operations on uc_cck_access_user_content_orders_form();
Removed unnecessary dependency on uc_cck_access module; Comments cleanup;
Fixed interference and conflicts in process_user_grant; Minor improvements;
Improved uc_cck_access_acl_items_granted() so it returns node grants in addition to CCK grants;
Redesigned _uc_cck_access_process_user_access() to use uc_cck_access_get_schedule();
Added 'describe_data' to access handler API; Expanded ACL name to have fields component in order to separate product features with different fields on the same node; Some code fixes;
Handler API change - use conditions array for 'items_granted' (more flexibility);
Changed _uc_cck_access_process_user_access() to use uc_cck_access_find_delays/expirations();
Reordered cron to do first expirations, then delayed grants;
Refactoring - created _uc_cck_access_sql_where_metatable() and uc_cck_access_get_schedule();
Changed content list to show multiple schedule items per each node (using uaid);
Added 'uaid' to the access handler API (to identify individual access items by the handler;
Prep for keying by other than access_id on user/admin lists (to support multiple product features for any given node).
Optimized filter by handler into query in ...content_orders_form;
Coding style cleanup; Setup convenience;
Data format cleanup, Fix timezone for duration display on the node; Items listed by handlers to avoid conflicting access_id's;
Logging messages and dblog; Date format setting; Date timezone - site default in logs, user on pages;
Scrubbed out nodes terminology; Added handler 'describe' options to do long, short, medium; Bugfixes; Improved _uc_cck_access_process_user_access() function - duplicates, lesser logic, logging;
Debugging issues, typos; Added clause that checks actual user grant in acl for CCK;
Implemented delay type setting;
Renamed delay fields in the Schema (for clarity and consistency);
Moved uc_cck_access_preprocess_node() to uc_cck_access_acl_preprocess_node(); Added handler's 'lesser_data' and 'intersecting_data' forgotten in prior committs;
Renamed nid to access_id where it is access_id;
Implementing logic for Schema change; Admin interface form submit;
Implementing logic for Schema change; Cleanup separation between main module and handlers;
Schema change - 1. access_nid became access_id (handler defines its meaning), 2. prepared for dual delays and expirations (either pfid or individual instructions (denormalized handler/access_id/data + durations) to support administration interface;
Some cleanup; Renaming for clarity;
Complex redesign broken into changesets (each may be incomplete) 6. Forms broken into subforms - submit code moved to corresponding submit functions; 7. Access handler provides its own subform's submit (using object wrapper for pass by reference $form_state;
Prepared Schema for delay_type; Minor cleanup and improvements;
Complex redesign broken into changesets (each may be incomplete) 5. Admin and user interface (user content list) - admin/submit incomplete;
Complex redesign broken into changesets (each may be incomplete) 2. Handler per product feature; 3. Forms broken into subforms; 4. Access handler provides its own subforms;
Complex redesign broken into changesets (each may be incomplete) 1. Schema change on {uc_cck_access_expirations};
Added 'handler' field to {uc_cck_access_products} table for per-feature handlers; Renamed 'fields_list' to generic 'data' field in {uc_cck_access_products} table (for various handlers); AHAH fixes; Separated subforms for reuse;
Clarify descriptions on product feature page;
preprocess_node: Build a list of all products that sell access to the node
Added cck_access section to form_alter on content_access_page;
Added 'delete' to uc_cck_access_acl handler;
Added cck_access section to form_alter on content_access_page;
Created _uc_cck_access_acl_name() to consolidate acl name pattern;
Improved alteration of content_access_page;
Converted to non-patched acl.module;
Moved to acl.module (requires node 'data' patch);
Field access control using cck_acl module;
Added configuration instructions;
Field access control using cck_acl module;
Added index for uc_cck_access_products.access_nid;
Remove uc_cck_access_acl handler upon uninstall;
Make CSS inclusion compatible with aggregation;
Self-install; Cleanup uc_cck_access_acl;
Added ucca_field_handler;
Compress fields list in database;
Renamed to ucca_node_handler; Added fields to product feature description;
Added fields_list setting to product feature (with AHAH callback from node id setting);
Fix layout distortion by ahah progress indicator; Inline elements of time period fieldset;
Fixed bad quotes; Removed hook_update_6000(); link to settings page; feature name collision;
Base functionality to start from (no CCK support yet!);
Copied code from uc_node_access module

Created by: iva2k
Created on: 5 Nov 2011 at 23:19 UTC
Last updated: 6 Nov 2011 at 06:23 UTC
New features

Other releases