Log of /contributions/modules/cck/nodereference.module
Parent Directory
|
Revision Log
|
Revision Graph
Revision
1.127
Wed Apr 23 18:02:14 2008 UTC
(19 months ago)
by
dww
Branch:
MAIN
CVS Tags:
HEAD
Changes since
1.126: +1 -1 lines
FILE REMOVED
#218973: Renamed from nodereference.module to modules/nodereference/nodereference.module
Revision
1.124 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Mar 31 03:16:09 2008 UTC
(19 months, 3 weeks ago)
by
karens
Branch:
MAIN
Changes since
1.123: +3 -4 lines
Diff to
previous 1.123
#240440 Must use $view->render() instead of $view->execute() to generate the view or pre_render() won't get triggered.
Revision
1.123 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Mar 30 10:27:42 2008 UTC
(19 months, 3 weeks ago)
by
karens
Branch:
MAIN
Changes since
1.122: +2 -2 lines
Diff to
previous 1.122
The many_to_one operator looks like it makes more sense to use as the default filter for fields with allowed values lists.
Revision
1.122 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Mar 26 22:21:21 2008 UTC
(19 months, 4 weeks ago)
by
karens
Branch:
MAIN
Changes since
1.121: +30 -21 lines
Diff to
previous 1.121
Update nodereference use of Views as selectors to add node titles and node title filters to view and use that filter.
Revision
1.121 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Mar 25 13:12:41 2008 UTC
(20 months ago)
by
karens
Branch:
MAIN
Changes since
1.120: +7 -14 lines
Diff to
previous 1.120
Re-name fields to use Views 1 naming like field_text_value instead of field_text to make updates easier, and alter content.views_convert.inc to match.
Add default filters for all fields, and update fields to switch from string or numeric filters to 'in' operators if there are lists of allowed values.
Add helper function to return Views table name to make it easier to change the tablename in the future, like if we find a way to avoid the need to alias each field as its own table.
Revision
1.119 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Mar 24 01:52:57 2008 UTC
(20 months ago)
by
yched
Branch:
MAIN
Changes since
1.118: +7 -6 lines
Diff to
previous 1.118
#186775 - nodereference : fix 'Invalid argument supplied for foreach()' + buggy display when using 'full node' formatter and the referenced node has been deleted
Revision
1.116 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Mar 18 12:46:57 2008 UTC
(20 months, 1 week ago)
by
karens
Branch:
MAIN
Changes since
1.115: +17 -20 lines
Diff to
previous 1.115
A little more cleanup of the option to use views for nodereference select lists. Using views for autocomplete is not yet working.
Revision
1.115 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Mar 18 11:44:56 2008 UTC
(20 months, 1 week ago)
by
karens
Branch:
MAIN
Changes since
1.114: +104 -89 lines
Diff to
previous 1.114
Re-implement the option to use a view to populate the nodereference selector. Still needs more work, but is basically functional for a select list. Nothing done yet about handling arguments or filters or using this in an autocomplete.
Revision
1.114 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Mar 17 12:19:30 2008 UTC
(20 months, 1 week ago)
by
karens
Branch:
MAIN
Changes since
1.113: +4 -3 lines
Diff to
previous 1.113
#235247, #235224, #224614, fix validation problems with optionwidgets, nodereference, and userreference. This fix gets the forms working correctly and options are saved as they should be. The default value selector in field settings is still broken with this fix, but the node forms now work correctly.
Revision
1.113 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Mar 13 00:56:07 2008 UTC
(20 months, 1 week ago)
by
yched
Branch:
MAIN
Changes since
1.112: +14 -1 lines
Diff to
previous 1.112
Small update for views integration :
- default Empty / Not empty filter for all fields
(still triggers a few warnings when used as exposed filters)
- very early beginnings of 'relationships' for nodereferences.
Doesn't do anything yet.
Revision
1.106 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Feb 7 18:43:15 2008 UTC
(21 months, 2 weeks ago)
by
yched
Branch:
MAIN
Changes since
1.105: +57 -37 lines
Diff to
previous 1.105
#213279 - formatters refactoring :
- formatters == theme functions
- allow formatters to handle multiple values
Revision
1.105 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Feb 7 15:23:11 2008 UTC
(21 months, 2 weeks ago)
by
karens
Branch:
MAIN
Changes since
1.104: +3 -3 lines
Diff to
previous 1.104
Small fix to commit that comments out the views handling in nodereference to make sure $result gets created.
Revision
1.101 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Dec 8 13:14:06 2007 UTC
(23 months, 2 weeks ago)
by
karens
Branch:
MAIN
Changes since
1.100: +2 -3 lines
Diff to
previous 1.100
#198420 Make sure internal field and widget names are truncated to 32 characters to match the database values.
Revision
1.100 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Nov 29 19:14:55 2007 UTC
(23 months, 3 weeks ago)
by
karens
Branch:
MAIN
Changes since
1.99: +12 -22 lines
Diff to
previous 1.99
More tweaking of nodereference and userreference to get the right values saved for both selects and autocompletes.
Revision
1.99 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Nov 28 16:56:22 2007 UTC
(23 months, 3 weeks ago)
by
karens
Branch:
MAIN
Changes since
1.98: +3 -10 lines
Diff to
previous 1.98
We now let the content module decide how to handle empty values, just go ahead and set the uid or nid, even if empty, then defer to the content module to handle the empty results.
Revision
1.98 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Nov 28 16:37:28 2007 UTC
(23 months, 3 weeks ago)
by
karens
Branch:
MAIN
Changes since
1.97: +5 -9 lines
Diff to
previous 1.97
Fix problems with autocomplete handling. It was doubled up in nodereference and a function was missing in userreference. Do the handling in the value callback instead of #process so we don't force a value in if none was selected.
Revision
1.92 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Nov 15 21:44:42 2007 UTC
(2 years ago)
by
karens
Branch:
MAIN
Changes since
1.91: +3 -3 lines
Diff to
previous 1.91
Added new fuctions to create 'default' field and widget arrays. Available to help expose field structure to external modules. Supplied values are now merged with default values to be sure all parts of the field and widget have indexes set. This means all field values will always return true to isset() and will not create undefined index errors. This also means module authors should not use isset() to test if values exist for form elements. Instead use is_array(), is_numeric() or similar tests.
Revision
1.91 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Nov 13 23:40:28 2007 UTC
(2 years ago)
by
karens
Branch:
MAIN
Changes since
1.90: +2 -1 lines
Diff to
previous 1.90
UI improvements for the screen to select fields and widgets, add a field description to hook_field_info(), then display it to make it easier for the user to make a choice.
Revision
1.89 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Nov 10 00:34:09 2007 UTC
(2 years ago)
by
karens
Branch:
MAIN
Changes since
1.88: +1 -4 lines
Diff to
previous 1.88
Two big D6 port changes:
#97861 change schema to store field column and module info in the field settings table so we have a way to clean fields up after a field module is uninstalled and rework all code to retrieve that info from the database instead of using module_invoke('database columns').
#157176 major restructuring to move most existing field crud processing to content_crud.inc. This still needs more testing and is not the final API, but it is a beginning.
Revision
1.88 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Nov 3 19:21:56 2007 UTC
(2 years ago)
by
karens
Branch:
MAIN
Changes since
1.87: +138 -15 lines
Diff to
previous 1.87
Make sure content_storage() has all $columns attributes, not just the names. Rework userreference and nodereference so they can become reusable elements. More updating of documentation.
Revision
1.87 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Nov 2 23:51:12 2007 UTC
(2 years ago)
by
karens
Branch:
MAIN
Changes since
1.86: +2 -2 lines
Diff to
previous 1.86
Had to switch to a different method of identifying the field name. Using #parents wouldn't work in the the default value form, so now setting #field_name as an explicit $element value.
Revision
1.86 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Nov 2 22:24:53 2007 UTC
(2 years ago)
by
karens
Branch:
MAIN
Changes since
1.85: +1 -19 lines
Diff to
previous 1.85
Make sure schema gets refreshed when field types change! More changes to remove use of #field in elements and replace it with new #field_info value in $form; Move install, uninstall, enable, and disable hooks all into .install file; Start developer upgrade documentation.
Revision
1.83 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Sep 30 10:52:52 2007 UTC
(2 years, 1 month ago)
by
karens
Branch:
MAIN
Changes since
1.82: +2 -2 lines
Diff to
previous 1.82
Remove a couple remaining default values and add code to content module to force all field columns to default to NULL.
Revision
1.82 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Sep 28 21:52:49 2007 UTC
(2 years, 1 month ago)
by
karens
Branch:
MAIN
Changes since
1.81: +20 -2 lines
Diff to
previous 1.81
Add content_notify() function modules can use to let content module take action when they are uninstalled or disabled. Change all field columns to 'not null' = FALSE so we can search for empty values consistently across field types.
Revision
1.81 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Sep 28 15:33:00 2007 UTC
(2 years, 1 month ago)
by
karens
Branch:
MAIN
Changes since
1.80: +10 -12 lines
Diff to
previous 1.80
Add hook_content_is_empty() function to fields and move handling of empty values to content_field_invoke_default().
Revision
1.80 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Sep 25 02:33:09 2007 UTC
(2 years, 2 months ago)
by
yched
Branch:
MAIN
Changes since
1.79: +1 -2 lines
Diff to
previous 1.79
D6 rework : finally deprecate hook_field($op = 'view'), in favor of the default implementation
provided by content.module
In order to not lose functionnality, we still have to allow formatters to display multiple values
Revision
1.79 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Sep 23 11:09:08 2007 UTC
(2 years, 2 months ago)
by
karens
Branch:
MAIN
Changes since
1.78: +1 -15 lines
Diff to
previous 1.78
Add includes for missing functions, re-arrange handling of form elements so content module adds them rather than field modules.
Revision
1.77 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Aug 27 20:44:22 2007 UTC
(2 years, 2 months ago)
by
karens
Branch:
MAIN
Changes since
1.76: +2 -3 lines
Diff to
previous 1.76
#157176 nodereference autocomplete need drupal_json() not drupal_to_js(), that gets nodereference autocomplete working.
Revision
1.75 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Aug 27 18:16:27 2007 UTC
(2 years, 2 months ago)
by
karens
Branch:
MAIN
Changes since
1.74: +179 -156 lines
Diff to
previous 1.74
#157176 First round of FAPIzing the widgets. Widget invoke hook_elements() and use FAPI #process, #value_callback, etc. Widgets now only produce a single element and content module handles multiple values. Widget elements are designed to be agnostic about where they are placed. The content module places them on nodes, but it should be possible to write custom code to place them elsewhere by creating a $field array that will tell the widget what parameters to use. See the referenced issue for more details.
Revision
1.74 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Aug 23 21:35:25 2007 UTC
(2 years, 3 months ago)
by
yched
Branch:
MAIN
Changes since
1.73: +1 -8 lines
Diff to
previous 1.73
#167945 (D6 / Schema API port) remove temporary code
+ merged duplicate db code for node insert and update
Revision
1.71 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Aug 15 19:13:03 2007 UTC
(2 years, 3 months ago)
by
yched
Branch:
MAIN
Changes since
1.70: +4 -4 lines
Diff to
previous 1.70
#167468 Fix noderef autocomplete widget w/ 'advanced (Views) mode' and Views 1.6 :
the first set of matches is repeated for subsequent edits (Views query cache)
(makes no sense for D6 yet, but keeps the code consistent
+ port of the 1.6 security fix (check_plain's)
Revision
1.69 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Aug 9 15:33:24 2007 UTC
(2 years, 3 months ago)
by
karens
Branch:
MAIN
Changes since
1.68: +12 -9 lines
Diff to
previous 1.68
Fixes so optionwidgets and select handling works in all modules, plus some more fixes for undefined indexes and variables.
Revision
1.68 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Jul 19 12:28:12 2007 UTC
(2 years, 4 months ago)
by
yched
Branch:
MAIN
Changes since
1.67: +3 -3 lines
Diff to
previous 1.67
#147205 - nodereference : fixed 'advanced settings - view arguments' not working.
- thanks caign and beholder
Revision
1.66 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Jul 6 12:30:50 2007 UTC
(2 years, 4 months ago)
by
karens
Branch:
MAIN
Changes since
1.65: +15 -1 lines
Diff to
previous 1.65
#157176 more work on 6.x port. Still lots of error messages left to track down, but static tables are created and menus are working.
Revision
1.65 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Jun 28 14:49:24 2007 UTC
(2 years, 4 months ago)
by
yched
Branch:
MAIN
Changes since
1.64: +3 -3 lines
Diff to
previous 1.64
#153284 - followup : also check for 'old' noderef fields that have never been re-edited
since the upgrade - thanks Karen
Revision
1.63 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Jun 21 14:12:37 2007 UTC
(2 years, 5 months ago)
by
yched
Branch:
MAIN
Changes since
1.62: +3 -3 lines
Diff to
previous 1.62
#153284 - fix unneeded views_get_views call when 'advanced (Views) node selection' is not used,
resulting in repeated "SELECT v.* FROM view_view v WHERE v.name = '--' " queries.
thanks to moggy for noticing this _and_ pinning this down to noderef field
Revision
1.61 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Jun 15 10:44:45 2007 UTC
(2 years, 5 months ago)
by
yched
Branch:
MAIN
Changes since
1.60: +4 -2 lines
Diff to
previous 1.60
#150297 - fix encoded raw htmlentities appearing in select widgets when using advanced
(Views) node selection
Revision
1.57 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Mar 30 15:18:46 2007 UTC
(2 years, 7 months ago)
by
yched
Branch:
MAIN
Changes since
1.56: +8 -8 lines
Diff to
previous 1.56
upgrade HEAD for current state of drupal 6 :
- hook_menu
- url / l refactor
- form_alter refactor
Absolutely untested and not ready for any kind of use :-)
Revision
1.48 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Jan 29 20:44:37 2007 UTC
(2 years, 9 months ago)
by
yched
Branch:
MAIN
Changes since
1.47: +30 -26 lines
Diff to
previous 1.47
#112464 - refactor userref and noderef validation steps (plus fix / simplify _userreference_potential_references)
Revision
1.47 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Jan 29 01:19:46 2007 UTC
(2 years, 9 months ago)
by
yched
Branch:
MAIN
Changes since
1.46: +2 -2 lines
Diff to
previous 1.46
#113381 - restore simple dropdown widget for non multiple noderef and userref fields
- patch by quicksketch (forgot to sync HEAD)
Revision
1.46 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Jan 25 17:27:45 2007 UTC
(2 years, 9 months ago)
by
yched
Branch:
MAIN
Changes since
1.45: +2 -1 lines
Diff to
previous 1.45
#105787 - new db scheme for 5.0 to avoid conflict with core tables (field data tables
are moved from 'node_' to 'content_' namespace)
+ fixes for older 4.7 versions migration path
update.php required !!
Revision
1.45 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Jan 25 13:13:02 2007 UTC
(2 years, 10 months ago)
by
karens
Branch:
MAIN
Changes since
1.44: +52 -53 lines
Diff to
previous 1.44
#112464 standardize validation in field rather than widget, standardize use of $items rather than $node_field
Revision
1.42 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Jan 9 15:40:00 2007 UTC
(2 years, 10 months ago)
by
karens
Branch:
MAIN
Changes since
1.41: +2 -16 lines
Diff to
previous 1.41
removed unused hook_help (module description now in .info), cleanup description text to match 5.x cleanup
Revision
1.39 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Nov 16 23:04:12 2006 UTC
(3 years ago)
by
yched
Branch:
MAIN
CVS Tags:
DRUPAL-5--1-0-beta
Branch point for:
DRUPAL-5
Changes since
1.38: +20 -9 lines
Diff to
previous 1.38
#97584 - fix MySQL errors with select widget / multiple
unifying how single and multiple field stores empty field (store 0) - hopefully the last fix for this noderef series, sorry for the back and forth dance
Revision
1.34 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Oct 17 13:26:52 2006 UTC
(3 years, 1 month ago)
by
karens
Branch:
MAIN
Changes since
1.33: +60 -14 lines
Diff to
previous 1.33
#87030 add blank option when not required to nodereference, #89717 add views filter options to nodereference, #89440 add formatters to nodereference (formatters won't work until content.module is updated, too)
Revision
1.32 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Aug 19 22:04:48 2006 UTC
(3 years, 3 months ago)
by
JonBob
Branch:
MAIN
Changes since
1.31: +3 -3 lines
Diff to
previous 1.31
#69472: Change type prefix from "content-" to "content_" to assist in theming
of forms. Those using views.module may have to re-save views after this change.
Custom node templates will need to be renamed.
Revision
1.22 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Apr 14 22:21:49 2006 UTC
(3 years, 7 months ago)
by
JonBob
Branch:
MAIN
Changes since
1.21: +12 -18 lines
Diff to
previous 1.21
#55570: Change the multiple-value conventions to remove a lot of redundant
code. This will require fixes to any themes that rely on the node data
structure previously used.
Revision
1.19 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Apr 12 21:06:39 2006 UTC
(3 years, 7 months ago)
by
JonBob
Branch:
MAIN
Changes since
1.18: +4 -24 lines
Diff to
previous 1.18
The first of two field API changes.
Added a $node_field parameter to hook_field() and hook_widget(). This eases
a very common pattern of getting and setting this value. While $node is still
passed by reference, fields should *not* modify it. Instead, modify $node_field
which is saved back automatically.
Revision
1.18 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Apr 12 20:35:22 2006 UTC
(3 years, 7 months ago)
by
JonBob
Branch:
MAIN
Changes since
1.17: +25 -10 lines
Diff to
previous 1.17
Added two new operations for hook_widget(): 'prepare form values' and
'process form values.' These operations previously were part of the work
done by 'form' and 'submit.' The new setup is better for separation of
tasks, but more importantly fixes a bug that caused radio button fields to
throw validation errors because the field's validation was being run on
incompatible data.
Revision
1.12 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Feb 26 00:13:11 2006 UTC
(3 years, 8 months ago)
by
JonBob
Branch:
MAIN
Changes since
1.11: +7 -6 lines
Diff to
previous 1.11
Correct deletion process, to not strand old revisions in the DB. This change
requires running update.php.
Revision
1.8 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Feb 18 19:00:05 2006 UTC
(3 years, 9 months ago)
by
JonBob
Branch:
MAIN
Changes since
1.7: +2 -2 lines
Diff to
previous 1.7
- Removed dead code
- Removed extra hook_field_settings() parameter
- Corrected textarea/textfield confusion
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.