| /[drupal]/contributions/modules/patterns/patterns.module |
Parent Directory
|
Revision Log
|
Revision Graph
| Links to HEAD: | (view) (download) (as text) (annotate) |
| Sticky Tag: |
disabled patterns_sync_form_values function for node forms until incompatibilities between the two are resolved
#592492 by andrewlevine: fixed - Fatal error when infinite recursion is detected
#592468 by andrewlevine: test for preventing infinite recursion improved to prevent false positives
#590380 by andrewlevine, vaish: Decide if sub-pattern needs to be run based on the mode defined within the pattern or selected in UI at the time of form submission
#590224 by Roger López: fixed - patterns_paths checks wrong path for file directory
Allow support for other modules to integrate with patterns by supplying a directory with /components or /patterns
Patch by dman #454098 1) Add support for php files 2) Better UI help to show pattern search directories 3) Fix prefix-unsafe db query 4) Fix php not-array error merging rids
#461564 Make the form syncing code look for option keys instead of option values first.
#436590 by cdale, vaish: added sites/all folder to the list of places where module looks for pattern files (see comment #2, #4 and #5)
#440916 by bhuga: fixed - profile-based patterns not listed after the installation
removed trailing white spaces
* Make an absolute non-references copy of for form sync. * Allow for some odd behavior in modules when setting default values and options * Fix yaml pattern using image widget instead of filefield
* Remove support for <page /> type xml syntax * Better more stable syncing of forms by completely separating the form data and form building for syncing from the pattern * Clean up some components that are doing checks again data that gets handled by sync_forms now
Better form syncronization. * Auto-set default values in form_values * Ignore disabled form items * Better determination of scalar vs non-scalar form values * Support optgroups in options (using similar to forms_options_flatten) * Fix issue where some modules set their default values to the incoming post values causing issues from pre-processed pattern values
* Add ability to overwrite/update checkboxes/select/radio form types. * Set default values for checkboxes/select/radio elements that were not specified. (Pending to set defaults for everything) * Cleaned up block component to go along with the form syncing code
Add functionality to examine the form object and adjust the pattern values accordingly for select/radio/checkboxes.
changed: additional processing of menu_name in order to enable re-running menu actions; $form_state now passed by reference so that we can change it within hook_patterns()
changed: submit buttons text made more descriptive
changed: load CSS only for paterns listing page, updated js code to use Drupal.behaviors
added: css classes for patterns listing table columns in order to make columns aligning possible
changed: patterns sharing (publishing) disabled by default and added setting to enable it
Add the path to where an "illegal error" has occured.
fixed: pattern can reside outside of Drupal's file folder in which case file_create_path() can't be used and is causing errors
fixed: loading YAML from string would remove all the line breaks from the content of action elements (e.g. body)
Fixed broken message on unsuccessful pattern execution
clear all Drupal caches after pattern execution
#345429 by qbnflaco, vnd: fixed "call-time pass-by-reference" warnings
added: support for additional more intuitive YAML syntax for pattern tag (use "name" instead of "value") fixed: if included pattern is not found give warning and try to continue execution
fixed by Sarva: Change isset to !empty for recursing the patterns info so a null (but isset value) does not give us a bad data
by Sarva: rebuild menu after each action is executed
fixed: ensure patterns folder exists and is writable before attempting import from the patterns server
UI changes related to import and server functionality
added: basic client/server functionality, updated: db schema (module reinstall required)
if pattern contains sub-patterns, make sure all are marked as enabled after the successful execution
improved custom error handling during pattern execution
improved pattern validation after parsing pattern file
fixed: prevent invalid pattern files from loading and report an error
make sure spyc library is included only once
changed patterns execution process, introduced patterns API functions and support for different modes of execution (work in progress)
added error handling to abort pattern execution if any error encountered
changed error reporting in order to make it work better with batch operations
added 'finished' callback to batch array
removed accidentally forgotten debug code
added basic support for YAML file format
Remove some in-active code relating to interactive patterns
updated patterns_execute_config() to also use batch operations
disable patterns_form_helper during batch operations
Fix problem with identifiers not sticking in the batch api 'sandbox' variable so switched to
Make patterns run using batch api vs the old way to solve static caching issues.
changed: Improved success message for enabling required modules.
fixed: check if taxonomy is set for the node before attempting to fix taxonomy dropdowns on node edit form
#372564 by mike stewart: Changed (improved) error message when patterns folder doesn't exist or it's not writable
changed: default module configuration support updated to reflect the fact that it should be called from hook_enable() instead of hook_install(). This change was required because modules that implement hook_enable() may not be fully ready to use when hook_install() is called causing pattern execution to fail.
added: support for third party modules to use patterns as a way of executing their default configuration during the module installation (first step towards the configuration framework)
patterns_execute_pattern() turned into the wrapper function for _patterns_execute_pattern() so that it can be called by other modules without the need of re-implementing custom error handling
fixed: patterns_form_helper should be disabled by default
added pattern title to the success message at the end of pattern execution
added settings page with setting for toggling patterns_form_helper
when checking for required modules, make sure all module's dependencies are also available
Fix bug where array_unshift gives a warning about adding a reference to the front of an array.
issue #353677: Use drupal_xml_parser_create() instead of xml_parser_create(). Thanks to Senpai.
fixed static caching problem with taxonomy terms on node edit form
'patterns_error' is not a real error and should be excluded from watchdog
Added custom implementations of some of the Drupal's core functions in order to fix the following issues caused by static caching: 1. If you call drupal_validate_form() on the same form more than once per page request, validation is not performed on any but the first call. (see issue: http://drupal.org/node/260934) 2. static caching was preventing certain dropdowns (parent menu item, parent and related taxonomy terms) from being updated and populated with the items created during the current pattern execution causing form validation errors (this became an issue only once we fixed #1)
$form_state most likely contains the indetifier for executed action so pass it to 'identifier' op
minor coding style updates
experimental support for catching PHP errors during pattern execution
prevent pattern from loading if parsing failed (XML is not well-formed) and report the error
check for existence of required modules befor erunning the pattern, improved error reporting
this was required in order to have patterns executing properly after the changes introduced with previous commit
* Give components access to form_state. * Allow better handling of stringing forms together with better hook invokation * Introduce initial/basic optional configuration api like feature using xPath like syntax on php arrays * Update views component for initial D6 and Views 2.0 support
remove redundant call to patterns_load_xml()
fixed issue #345429: "Warning: Call-time pass-by-reference has been deprecated" (thanks Senpai)
improved error reporting
patterns.module - tokens should be replaced before op 'validate' in order to enable proper data validation menu.inc - improved proccessing and error checking, bugfixes
system.inc: bugfixes and improved support for different use-cases
patterns.inc: clean up the code and update error message block.inc: fix bugs, improve code to work for all different use cases, add support for remaining block settings that were not supported till now
import patterns - code ported to Drupal 6 and validation slightly improved
patterns listing - check for existence of patterns file before displaying patterns info from the database
Initial version of D6 port. Unstable alpha stage.
merge updates from HEAD to DRUPAL-5
Update patterns UI and pattern files.
Update patterns UI. Fix minor bugs. Add Import via URL functionality. Remove old default patterns and make available more useful patterns
Update patterns UI. Fix minor bugs. Add Import via URL functionality. Remove old default patterns and make available more useful patterns
Initial commit of patterns module for DRUPAL-5. Module allows user to put their site configuration in an xml file to be re-run at any time.
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.
| ViewVC Help | |
| Powered by ViewVC 1.1.2 |