/[drupal]/contributions/modules/draggableviews/draggableviews.inc
ViewVC logotype

Log of /contributions/modules/draggableviews/draggableviews.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Tag:

Revision 1.7.2.37 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Sep 7 19:14:47 2009 UTC (2 months, 2 weeks ago) by sevi
Branch: DRUPAL-6--3
CVS Tags: DRUPAL-6--3-3-BETA1, DRUPAL-6--3-3-BETA2
Changes since 1.7.2.36: +25 -7 lines
Diff to previous 1.7.2.36 , to branch point 1.7 , to next main 1.12
Bug-Fix: The order value must be greater than the minimum value.
Refactored Handler system: Parent handler introduced. All third party handlers must be rewritten.
Book-Handler: Rewritten. First root node of the view pretends to be the root node (concerning both parent nid and order value). For saving the actual values will be restored.
Options of Native handler are now listed in a seperated section.

Revision 1.7.2.36 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Sep 6 16:22:02 2009 UTC (2 months, 2 weeks ago) by sevi
Branch: DRUPAL-6--3
Changes since 1.7.2.35: +26 -26 lines
Diff to previous 1.7.2.35 , to branch point 1.7
Bug-Fix: Support offset of views. Feature: The handler now has a get() method to prepare the value for draggableviews.

Revision 1.7.2.35 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Sep 4 11:25:50 2009 UTC (2 months, 3 weeks ago) by sevi
Branch: DRUPAL-6--3
Changes since 1.7.2.34: +8 -4 lines
Diff to previous 1.7.2.34 , to branch point 1.7
Bug-Fix: Added variable declaration in draggableviews_info also before the handlers get loaded.
Bug-Fix: ensure theme even if style-plugin is not in use.
Added some isset() and empty() checks to get grid of "notice:" messages.
Changed position of variable-initializations to  make them have a value even if the style_plugin is not in use (the theme).
Bug-Fix: All handlers: Removed non existing $field (lny used if attributes not present; was actually never used).

Revision 1.7.2.34 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Sep 1 22:25:02 2009 UTC (2 months, 3 weeks ago) by sevi
Branch: DRUPAL-6--3
Changes since 1.7.2.33: +2 -2 lines
Diff to previous 1.7.2.33 , to branch point 1.7
Important form-api changes: All form elements are now built before drupal_get_form gets called, so the drupal_render function will have all needed attributes set (PHP Notice errors).

Revision 1.7.2.33 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Aug 21 14:47:09 2009 UTC (3 months ago) by sevi
Branch: DRUPAL-6--3
CVS Tags: DRUPAL-6--3-2, DRUPAL-6--3-2-BETA7
Changes since 1.7.2.32: +3 -3 lines
Diff to previous 1.7.2.32 , to branch point 1.7
Use consequently the view-name instead of the vid. So also unsaved views (..exported to code) are supported).
Check if it's an object when running the theme_hook.
The draggableviews_view_draggabletable_form_new theme died.

Revision 1.7.2.32 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Aug 19 12:28:38 2009 UTC (3 months, 1 week ago) by sevi
Branch: DRUPAL-6--3
CVS Tags: DRUPAL-6--3-2-BETA6
Changes since 1.7.2.31: +3 -3 lines
Diff to previous 1.7.2.31 , to branch point 1.7
Bug-Fix: used strlen instead of count; Fixed coding standard issues

Revision 1.7.2.31 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Aug 17 23:46:45 2009 UTC (3 months, 1 week ago) by sevi
Branch: DRUPAL-6--3
Changes since 1.7.2.30: +3 -3 lines
Diff to previous 1.7.2.30 , to branch point 1.7
The function get_minimum_value() died. Changed markup

Revision 1.7.2.30 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Aug 17 14:37:04 2009 UTC (3 months, 1 week ago) by sevi
Branch: DRUPAL-6--3
Changes since 1.7.2.29: +24 -1 lines
Diff to previous 1.7.2.29 , to branch point 1.7
Row plugin is no longer supported by draggableviews.
Grouping is no longer supported by draggableviews (and also not shown in settings).
The form id will be set to .._new if the view hasn't been safed yet.

Changed some variable names and comments.
Moved drupal_add_tabledrag from .tpl.php to _theme.inc.
Moved _draggableviews_filter_fields(..) to draggableviews.inc.
Refactored the way the view gets themed. (Regardless of grouping.)
Now tabledrag Root/Leaf settings will only be specified and shown if base_table==node.
Changed error message for sort criteria: Use "Group: Field" instead of the label of the field.

Revision 1.7.2.29 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Aug 15 17:27:45 2009 UTC (3 months, 1 week ago) by sevi
Branch: DRUPAL-6--3
Changes since 1.7.2.28: +25 -17 lines
Diff to previous 1.7.2.28 , to branch point 1.7
#536846: Now all kinds of base tables are supported. All $node->nid was changed to $node->{$view->base_table}. The variable name $node represents any kind of a base-table {node, taxonomy_term, user,..}. Now the root/leaf stuff only makes sense in combination with node base_table.
#546142: Bug-Fix: Now new nodes can appear at the very bottom (if selected). Now the big number 99999999 is used instead of $view->total_rows (not always calculated).
Furthermore many comments changed. The code for the "to prevent copy->paste'ing" loop changed from for(..) to foreach(..).
The internal names of all views fields changed. So the cache must be cleared as well as all views must be reconfigured.

Revision 1.7.2.28 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jul 16 19:50:56 2009 UTC (4 months, 1 week ago) by sevi
Branch: DRUPAL-6--3
Changes since 1.7.2.27: +17 -16 lines
Diff to previous 1.7.2.27 , to branch point 1.7
BUG-FIX: Make sure that all order values are unique before draggableviews_check_order(..) assigns order values of parents. This is achieved by an unique $safe_offset (always < 1) that will be added to all order values.
BUG-FIX: The view has not been re-executed after a rebuild if paging was not used.

Revision 1.7.2.27 - (view) (download) (as text) (annotate) - [select for diffs]
Fri May 22 19:38:53 2009 UTC (6 months ago) by sevi
Branch: DRUPAL-6--3
Changes since 1.7.2.26: +898 -897 lines
Diff to previous 1.7.2.26 , to branch point 1.7
Stay compatible with older PHP versions < 5.0.2

Revision 1.7.2.26 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Mar 27 19:11:44 2009 UTC (8 months ago) by sevi
Branch: DRUPAL-6--3
CVS Tags: DRUPAL-6--3-2-BETA4, DRUPAL-6--3-2-BETA5
Changes since 1.7.2.25: +3 -1 lines
Diff to previous 1.7.2.25 , to branch point 1.7
Changed formatting

Revision 1.7.2.25 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Mar 26 19:17:23 2009 UTC (8 months ago) by sevi
Branch: DRUPAL-6--3
Changes since 1.7.2.24: +35 -26 lines
Diff to previous 1.7.2.24 , to branch point 1.7
Huge performance improvements:
The way how the view gets re-executed with extended visible window changed.
Added hook_views_pre_execute() where in case of hierarchies the view can be prepared to get entirely loaded. In case of no hierarchies the extension can be set and the view doesn't have to
be re-executed.

Revision 1.7.2.24 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Mar 22 13:41:27 2009 UTC (8 months ago) by sevi
Branch: DRUPAL-6--3
Changes since 1.7.2.23: +2 -0 lines
Diff to previous 1.7.2.23 , to branch point 1.7
Bug-Fix: Parent values < 0 will be set to 0 to prevent errors

Revision 1.7.2.23 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Mar 22 13:16:41 2009 UTC (8 months ago) by sevi
Branch: DRUPAL-6--3
Changes since 1.7.2.22: +74 -86 lines
Diff to previous 1.7.2.22 , to branch point 1.7
Wow, what a big step ahead. Only one weight field at all instead of one weight field for each level.

Revision 1.7.2.22 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Mar 16 14:00:31 2009 UTC (8 months, 1 week ago) by sevi
Branch: DRUPAL-6--3
CVS Tags: DRUPAL-6--3-2-BETA3
Changes since 1.7.2.21: +2 -2 lines
Diff to previous 1.7.2.21 , to branch point 1.7
Changed a comment

Revision 1.7.2.21 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Mar 15 21:52:25 2009 UTC (8 months, 1 week ago) by sevi
Branch: DRUPAL-6--3
Changes since 1.7.2.20: +18 -4 lines
Diff to previous 1.7.2.20 , to branch point 1.7
Setting all unused fields to a minimum isn't a task any more of _draggableviews_ascending_number() but rather a task of _draggableviews_calculate_depths(). In combination with the new task
of _draggableviews_check_order() - setting the order value of the parent node on the child-nodes level to 0 - the sorting of all nodes works reliable now.
-> No bugs any more that occur "sometimes".

Revision 1.7.2.20 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Mar 15 14:50:59 2009 UTC (8 months, 1 week ago) by sevi
Branch: DRUPAL-6--3
Changes since 1.7.2.19: +11 -12 lines
Diff to previous 1.7.2.19 , to branch point 1.7
New option: Choose wheter to save the expand/collapse states for all users or only for the current user.
Bug-Fix: view window has not been extended because of permissions, locked. This caused display errors. Now extensions are set to 0 and window will be extended for a minimum window.

Revision 1.7.2.19 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Mar 14 19:43:01 2009 UTC (8 months, 1 week ago) by sevi
Branch: DRUPAL-6--3
Changes since 1.7.2.18: +16 -5 lines
Diff to previous 1.7.2.18 , to branch point 1.7
*) New setting: Lock; The structure can be locked and hierarchy cannot be changed anymore. Expand/Collapse will be available even if user doesn't have permission or structure if locked.
The concerned fields will be hidden even if tabledrag is not applied.
*) Bug-Fix: Now collapse/expand information is available for each view seperately. The vid hasn't been saved until now. The db table changed.
*) Bug-Fix: After a click sort the view will be displayed properly.
*) Exposed fields data will be attached to form_submit. Now exposed filter are supported properly. Order fields will not be attached.

Revision 1.7.2.18 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Mar 9 22:10:04 2009 UTC (8 months, 2 weeks ago) by sevi
Branch: DRUPAL-6--3
CVS Tags: DRUPAL-6--3-2-BETA2
Changes since 1.7.2.17: +7 -1 lines
Diff to previous 1.7.2.17 , to branch point 1.7
Now new nodes default either on top or on the bottom depending on the variable draggableviews_default_on_top.

Revision 1.7.2.17 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Mar 8 14:47:18 2009 UTC (8 months, 2 weeks ago) by sevi
Branch: DRUPAL-6--3
Changes since 1.7.2.16: +15 -1 lines
Diff to previous 1.7.2.16 , to branch point 1.7
Now the number of extension rows can be spcified at style_plugin settings.

Revision 1.7.2.16 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Mar 8 01:16:32 2009 UTC (8 months, 2 weeks ago) by sevi
Branch: DRUPAL-6--3
Changes since 1.7.2.15: +411 -321 lines
Diff to previous 1.7.2.15 , to branch point 1.7
Comments rewritten. Restructured code.
Most code sections have been rewritten and have been commented.
Added more validaten checks (sort criterias).
Fixed some bugs.

Revision 1.7.2.15 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Mar 5 22:02:19 2009 UTC (8 months, 3 weeks ago) by sevi
Branch: DRUPAL-6--3
Changes since 1.7.2.14: +443 -434 lines
Diff to previous 1.7.2.14 , to branch point 1.7
Many many changes to code, order of code and structure of code. Some functions were moved from .inc to .module.
Now paging is definitely implemented and supported. Nodes can be dragged from one page to an other.
Describing the single changes would end up in 30 pages of describing, so I write only this short change-log.

Revision 1.7.2.14 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Feb 23 10:13:59 2009 UTC (9 months ago) by sevi
Branch: DRUPAL-6--3
Changes since 1.7.2.13: +59 -57 lines
Diff to previous 1.7.2.13 , to branch point 1.7
Now info array is attached to view, so it hasn't to be loaded 3 times but only once. This needed some changes to _draggableviews_info and all caller

Revision 1.7.2.13 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Feb 21 02:32:13 2009 UTC (9 months ago) by sevi
Branch: DRUPAL-6--3
CVS Tags: DRUPAL-6--3-2-BETA1
Changes since 1.7.2.12: +0 -9 lines
Diff to previous 1.7.2.12 , to branch point 1.7
*) Remove some error checking that goes to the validate() function of the views style plugin
*) Remove drupal_rebuild_theme_registry as this is done by views after saving a view

Revision 1.7.2.12 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Feb 20 17:38:11 2009 UTC (9 months ago) by sevi
Branch: DRUPAL-6--3
Changes since 1.7.2.11: +22 -6 lines
Diff to previous 1.7.2.11 , to branch point 1.7
*) Bug fixed (occured when using "items to display"). Now current view
settings will be used to _number_serially (instead of saved settings).
*) Unsaved views will not be analyzed now. After renumbering nodes
return immediately.

Revision 1.7.2.11 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Feb 16 00:00:05 2009 UTC (9 months, 1 week ago) by sevi
Branch: DRUPAL-6--3
Changes since 1.7.2.10: +48 -16 lines
Diff to previous 1.7.2.10 , to branch point 1.7
*) Now info array contains view object
*) Outsorced "assigning ascending numbers" in seperated function
*) If paging used: Assign ascending number for nodes of fully loaded view if broken structure detected

Revision 1.7.2.10 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Feb 9 14:27:56 2009 UTC (9 months, 2 weeks ago) by sevi
Branch: DRUPAL-6--3
Changes since 1.7.2.9: +2 -1 lines
Diff to previous 1.7.2.9 , to branch point 1.7
Add submit property (because now each view instance has its unique form_id,..)

Revision 1.7.2.9 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Feb 8 17:26:59 2009 UTC (9 months, 2 weeks ago) by sevi
Branch: DRUPAL-6--3
Changes since 1.7.2.8: +27 -6 lines
Diff to previous 1.7.2.8 , to branch point 1.7
*) changed for loop to foreach
*) synchronise views click sort with draggableviews (#362088)

Revision 1.7.2.8 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Jan 24 14:59:27 2009 UTC (10 months ago) by sevi
Branch: DRUPAL-6--3
Changes since 1.7.2.7: +26 -9 lines
Diff to previous 1.7.2.7 , to branch point 1.7
Now nodes with no order-information set will default to the bottom

Revision 1.7.2.7 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jan 22 16:05:57 2009 UTC (10 months ago) by sevi
Branch: DRUPAL-6--3
Changes since 1.7.2.6: +50 -36 lines
Diff to previous 1.7.2.6 , to branch point 1.7
Added much more error-checking (handlers)

Revision 1.7.2.6 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Jan 11 21:06:44 2009 UTC (10 months, 2 weeks ago) by sevi
Branch: DRUPAL-6--3
Changes since 1.7.2.5: +5 -7 lines
Diff to previous 1.7.2.5 , to branch point 1.7
Fixed bug #357125 which caused recursion, because further checks were made with erroneous depths

Revision 1.7.2.5 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jan 9 15:02:30 2009 UTC (10 months, 2 weeks ago) by sevi
Branch: DRUPAL-6--3
Changes since 1.7.2.4: +167 -172 lines
Diff to previous 1.7.2.4 , to branch point 1.7
Coding standards!

Revision 1.7.2.4 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jan 9 01:38:33 2009 UTC (10 months, 2 weeks ago) by sevi
Branch: DRUPAL-6--3
Changes since 1.7.2.3: +160 -246 lines
Diff to previous 1.7.2.3 , to branch point 1.7
Introduced draggableviews handlers

Revision 1.12 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jan 8 22:38:36 2009 UTC (10 months, 2 weeks ago) by sevi
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +113 -264 lines
Diff to previous 1.11
Fundamental changes:
*) Introduction of handlers (handle saving and outputting)

Revision 1.7.2.3 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Sep 24 23:52:40 2008 UTC (14 months ago) by sevi
Branch: DRUPAL-6--3
CVS Tags: DRUPAL-6--3-1
Changes since 1.7.2.2: +1 -1 lines
Diff to previous 1.7.2.2 , to branch point 1.7
added some permission checks; changed collision detection from depth to parent

Revision 1.11 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Sep 24 23:24:09 2008 UTC (14 months ago) by sevi
Branch: MAIN
Changes since 1.10: +5 -1 lines
Diff to previous 1.10
added permission checks

Revision 1.7.2.2 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Sep 24 22:10:14 2008 UTC (14 months ago) by sevi
Branch: DRUPAL-6--3
Changes since 1.7.2.1: +42 -36 lines
Diff to previous 1.7.2.1 , to branch point 1.7
draggableviews_theme.inc: added permission check on "Allow reordering" (3 times); fixed tabledrag limit (-1)
draggableviews.inc: added permission check on "allow reordering" and return if no orders defined; changed
function .._detect_order_collisions as we now use the parent as key instead of the depth; removed useless
out-commented realtimeedit code; added expand/collapsed state to info function; Bug output addded; added
some other checks

Revision 1.7.2.1 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Sep 21 21:17:33 2008 UTC (14 months ago) by sevi
Branch: DRUPAL-6--3
CVS Tags: DRUPAL-6--3-0
Changes since 1.7: +681 -668 lines
Diff to previous 1.7
don't save collapsed state if no hierarchy is beeing used

Revision 1.10 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Sep 21 20:36:49 2008 UTC (14 months ago) by sevi
Branch: MAIN
Changes since 1.9: +0 -0 lines
Diff to previous 1.9
Now theme functions break when no order fields specified

Revision 1.9 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Sep 21 20:32:59 2008 UTC (14 months ago) by sevi
Branch: MAIN
Changes since 1.8: +682 -669 lines
Diff to previous 1.8
Finally got it

Revision 1.8 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Sep 21 20:31:38 2008 UTC (14 months ago) by sevi
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7
jksdf

Revision 1.7 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Sep 20 10:34:02 2008 UTC (14 months ago) by sevi
Branch: MAIN
Branch point for: DRUPAL-6--3
Changes since 1.6: +668 -668 lines
Diff to previous 1.6
Recommitting (*confused*)

Revision 1.6 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Sep 20 10:33:22 2008 UTC (14 months ago) by sevi
Branch: MAIN
Changes since 1.5: +0 -0 lines
Diff to previous 1.5
Recommiting

Revision 1.5 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Sep 19 16:27:57 2008 UTC (14 months, 1 week ago) by sevi
Branch: MAIN
Changes since 1.4: +16 -0 lines
Diff to previous 1.4
Now expanded/collapsed state will be saved in database

Revision 1.4 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Sep 19 15:58:03 2008 UTC (14 months, 1 week ago) by sevi
Branch: MAIN
Changes since 1.3: +46 -36 lines
Diff to previous 1.3
*** empty log message ***

Revision 1.3 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Sep 19 09:47:12 2008 UTC (14 months, 1 week ago) by sevi
Branch: MAIN
Changes since 1.2: +634 -249 lines
Diff to previous 1.2
Module rewritten
Rebuilding broken structures automatically

Revision 1.1.2.1 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Sep 17 12:54:23 2008 UTC (14 months, 1 week ago) by sevi
Branch: DRUPAL-6--1
CVS Tags: DRUPAL-6--1-2-BETA2
Branch point for: DRUPAL-6--2
Changes since 1.1: +394 -194 lines
Diff to previous 1.1 , to next main 1.12
Changed module to work with the most recent changes of views2
Added the expand/collapse feature to be used by default

Revision 1.2
Wed Jul 16 14:59:25 2008 UTC (16 months, 1 week ago) by sevi
Branch: MAIN
Changes since 1.1: +1 -1 lines
FILE REMOVED
delete code from HEAD

Revision 1.1 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jul 15 21:07:45 2008 UTC (16 months, 1 week ago) by sevi
Branch: MAIN
CVS Tags: DRUPAL-6--1-0-BETA1
Branch point for: DRUPAL-6--1
*** empty log message ***

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.

  Diffs between and
  Type of Diff should be a

Sort log by:

  ViewVC Help
Powered by ViewVC 1.1.2