Révision 99781f3b
Ajouté par Assos Assos il y a plus de 7 ans
drupal7/sites/all/modules/hidden_captcha/LICENSE.txt | ||
---|---|---|
1 |
GNU GENERAL PUBLIC LICENSE |
|
2 |
|
|
3 |
Version 2, June 1991 |
|
4 |
|
|
5 |
Copyright (C) 1989, 1991 Free Software Foundation, Inc. 675 Mass Ave, |
|
6 |
Cambridge, MA 02139, USA. Everyone is permitted to copy and distribute |
|
7 |
verbatim copies of this license document, but changing it is not allowed. |
|
8 |
|
|
9 |
Preamble |
|
10 |
|
|
11 |
The licenses for most software are designed to take away your freedom to |
|
12 |
share and change it. By contrast, the GNU General Public License is |
|
13 |
intended to guarantee your freedom to share and change free software--to |
|
14 |
make sure the software is free for all its users. This General Public License |
|
15 |
applies to most of the Free Software Foundation's software and to any other |
|
16 |
program whose authors commit to using it. (Some other Free Software |
|
17 |
Foundation software is covered by the GNU Library General Public License |
|
18 |
instead.) You can apply it to your programs, too. |
|
19 |
|
|
20 |
When we speak of free software, we are referring to freedom, not price. Our |
|
21 |
General Public Licenses are designed to make sure that you have the |
|
22 |
freedom to distribute copies of free software (and charge for this service if |
|
23 |
you wish), that you receive source code or can get it if you want it, that you |
|
24 |
can change the software or use pieces of it in new free programs; and that |
|
25 |
you know you can do these things. |
|
26 |
|
|
27 |
To protect your rights, we need to make restrictions that forbid anyone to |
|
28 |
deny you these rights or to ask you to surrender the rights. These restrictions |
|
29 |
translate to certain responsibilities for you if you distribute copies of the |
|
30 |
software, or if you modify it. |
|
31 |
|
|
32 |
For example, if you distribute copies of such a program, whether gratis or for |
|
33 |
a fee, you must give the recipients all the rights that you have. You must make |
|
34 |
sure that they, too, receive or can get the source code. And you must show |
|
35 |
them these terms so they know their rights. |
|
36 |
|
|
37 |
We protect your rights with two steps: (1) copyright the software, and (2) |
|
38 |
offer you this license which gives you legal permission to copy, distribute |
|
39 |
and/or modify the software. |
|
40 |
|
|
41 |
Also, for each author's protection and ours, we want to make certain that |
|
42 |
everyone understands that there is no warranty for this free software. If the |
|
43 |
software is modified by someone else and passed on, we want its recipients |
|
44 |
to know that what they have is not the original, so that any problems |
|
45 |
introduced by others will not reflect on the original authors' reputations. |
|
46 |
|
|
47 |
Finally, any free program is threatened constantly by software patents. We |
|
48 |
wish to avoid the danger that redistributors of a free program will individually |
|
49 |
obtain patent licenses, in effect making the program proprietary. To prevent |
|
50 |
this, we have made it clear that any patent must be licensed for everyone's |
|
51 |
free use or not licensed at all. |
|
52 |
|
|
53 |
The precise terms and conditions for copying, distribution and modification |
|
54 |
follow. |
|
55 |
|
|
56 |
GNU GENERAL PUBLIC LICENSE |
|
57 |
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND |
|
58 |
MODIFICATION |
|
59 |
|
|
60 |
0. This License applies to any program or other work which contains a notice |
|
61 |
placed by the copyright holder saying it may be distributed under the terms |
|
62 |
of this General Public License. The "Program", below, refers to any such |
|
63 |
program or work, and a "work based on the Program" means either the |
|
64 |
Program or any derivative work under copyright law: that is to say, a work |
|
65 |
containing the Program or a portion of it, either verbatim or with |
|
66 |
modifications and/or translated into another language. (Hereinafter, translation |
|
67 |
is included without limitation in the term "modification".) Each licensee is |
|
68 |
addressed as "you". |
|
69 |
|
|
70 |
Activities other than copying, distribution and modification are not covered |
|
71 |
by this License; they are outside its scope. The act of running the Program is |
|
72 |
not restricted, and the output from the Program is covered only if its contents |
|
73 |
constitute a work based on the Program (independent of having been made |
|
74 |
by running the Program). Whether that is true depends on what the Program |
|
75 |
does. |
|
76 |
|
|
77 |
1. You may copy and distribute verbatim copies of the Program's source |
|
78 |
code as you receive it, in any medium, provided that you conspicuously and |
|
79 |
appropriately publish on each copy an appropriate copyright notice and |
|
80 |
disclaimer of warranty; keep intact all the notices that refer to this License |
|
81 |
and to the absence of any warranty; and give any other recipients of the |
|
82 |
Program a copy of this License along with the Program. |
|
83 |
|
|
84 |
You may charge a fee for the physical act of transferring a copy, and you |
|
85 |
may at your option offer warranty protection in exchange for a fee. |
|
86 |
|
|
87 |
2. You may modify your copy or copies of the Program or any portion of it, |
|
88 |
thus forming a work based on the Program, and copy and distribute such |
|
89 |
modifications or work under the terms of Section 1 above, provided that you |
|
90 |
also meet all of these conditions: |
|
91 |
|
|
92 |
a) You must cause the modified files to carry prominent notices stating that |
|
93 |
you changed the files and the date of any change. |
|
94 |
|
|
95 |
b) You must cause any work that you distribute or publish, that in whole or in |
|
96 |
part contains or is derived from the Program or any part thereof, to be |
|
97 |
licensed as a whole at no charge to all third parties under the terms of this |
|
98 |
License. |
|
99 |
|
|
100 |
c) If the modified program normally reads commands interactively when run, |
|
101 |
you must cause it, when started running for such interactive use in the most |
|
102 |
ordinary way, to print or display an announcement including an appropriate |
|
103 |
copyright notice and a notice that there is no warranty (or else, saying that |
|
104 |
you provide a warranty) and that users may redistribute the program under |
|
105 |
these conditions, and telling the user how to view a copy of this License. |
|
106 |
(Exception: if the Program itself is interactive but does not normally print such |
|
107 |
an announcement, your work based on the Program is not required to print |
|
108 |
an announcement.) |
|
109 |
|
|
110 |
These requirements apply to the modified work as a whole. If identifiable |
|
111 |
sections of that work are not derived from the Program, and can be |
|
112 |
reasonably considered independent and separate works in themselves, then |
|
113 |
this License, and its terms, do not apply to those sections when you distribute |
|
114 |
them as separate works. But when you distribute the same sections as part |
|
115 |
of a whole which is a work based on the Program, the distribution of the |
|
116 |
whole must be on the terms of this License, whose permissions for other |
|
117 |
licensees extend to the entire whole, and thus to each and every part |
|
118 |
regardless of who wrote it. |
|
119 |
|
|
120 |
Thus, it is not the intent of this section to claim rights or contest your rights to |
|
121 |
work written entirely by you; rather, the intent is to exercise the right to |
|
122 |
control the distribution of derivative or collective works based on the |
|
123 |
Program. |
|
1 |
GNU GENERAL PUBLIC LICENSE |
|
2 |
Version 2, June 1991 |
|
3 |
|
|
4 |
Copyright (C) 1989, 1991 Free Software Foundation, Inc., |
|
5 |
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
|
6 |
Everyone is permitted to copy and distribute verbatim copies |
|
7 |
of this license document, but changing it is not allowed. |
|
8 |
|
|
9 |
Preamble |
|
10 |
|
|
11 |
The licenses for most software are designed to take away your |
|
12 |
freedom to share and change it. By contrast, the GNU General Public |
|
13 |
License is intended to guarantee your freedom to share and change free |
|
14 |
software--to make sure the software is free for all its users. This |
|
15 |
General Public License applies to most of the Free Software |
|
16 |
Foundation's software and to any other program whose authors commit to |
|
17 |
using it. (Some other Free Software Foundation software is covered by |
|
18 |
the GNU Lesser General Public License instead.) You can apply it to |
|
19 |
your programs, too. |
|
20 |
|
|
21 |
When we speak of free software, we are referring to freedom, not |
|
22 |
price. Our General Public Licenses are designed to make sure that you |
|
23 |
have the freedom to distribute copies of free software (and charge for |
|
24 |
this service if you wish), that you receive source code or can get it |
|
25 |
if you want it, that you can change the software or use pieces of it |
|
26 |
in new free programs; and that you know you can do these things. |
|
27 |
|
|
28 |
To protect your rights, we need to make restrictions that forbid |
|
29 |
anyone to deny you these rights or to ask you to surrender the rights. |
|
30 |
These restrictions translate to certain responsibilities for you if you |
|
31 |
distribute copies of the software, or if you modify it. |
|
32 |
|
|
33 |
For example, if you distribute copies of such a program, whether |
|
34 |
gratis or for a fee, you must give the recipients all the rights that |
|
35 |
you have. You must make sure that they, too, receive or can get the |
|
36 |
source code. And you must show them these terms so they know their |
|
37 |
rights. |
|
38 |
|
|
39 |
We protect your rights with two steps: (1) copyright the software, and |
|
40 |
(2) offer you this license which gives you legal permission to copy, |
|
41 |
distribute and/or modify the software. |
|
42 |
|
|
43 |
Also, for each author's protection and ours, we want to make certain |
|
44 |
that everyone understands that there is no warranty for this free |
|
45 |
software. If the software is modified by someone else and passed on, we |
|
46 |
want its recipients to know that what they have is not the original, so |
|
47 |
that any problems introduced by others will not reflect on the original |
|
48 |
authors' reputations. |
|
49 |
|
|
50 |
Finally, any free program is threatened constantly by software |
|
51 |
patents. We wish to avoid the danger that redistributors of a free |
|
52 |
program will individually obtain patent licenses, in effect making the |
|
53 |
program proprietary. To prevent this, we have made it clear that any |
|
54 |
patent must be licensed for everyone's free use or not licensed at all. |
|
55 |
|
|
56 |
The precise terms and conditions for copying, distribution and |
|
57 |
modification follow. |
|
58 |
|
|
59 |
GNU GENERAL PUBLIC LICENSE |
|
60 |
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION |
|
61 |
|
|
62 |
0. This License applies to any program or other work which contains |
|
63 |
a notice placed by the copyright holder saying it may be distributed |
|
64 |
under the terms of this General Public License. The "Program", below, |
|
65 |
refers to any such program or work, and a "work based on the Program" |
|
66 |
means either the Program or any derivative work under copyright law: |
|
67 |
that is to say, a work containing the Program or a portion of it, |
|
68 |
either verbatim or with modifications and/or translated into another |
|
69 |
language. (Hereinafter, translation is included without limitation in |
|
70 |
the term "modification".) Each licensee is addressed as "you". |
|
71 |
|
|
72 |
Activities other than copying, distribution and modification are not |
|
73 |
covered by this License; they are outside its scope. The act of |
|
74 |
running the Program is not restricted, and the output from the Program |
|
75 |
is covered only if its contents constitute a work based on the |
|
76 |
Program (independent of having been made by running the Program). |
|
77 |
Whether that is true depends on what the Program does. |
|
78 |
|
|
79 |
1. You may copy and distribute verbatim copies of the Program's |
|
80 |
source code as you receive it, in any medium, provided that you |
|
81 |
conspicuously and appropriately publish on each copy an appropriate |
|
82 |
copyright notice and disclaimer of warranty; keep intact all the |
|
83 |
notices that refer to this License and to the absence of any warranty; |
|
84 |
and give any other recipients of the Program a copy of this License |
|
85 |
along with the Program. |
|
86 |
|
|
87 |
You may charge a fee for the physical act of transferring a copy, and |
|
88 |
you may at your option offer warranty protection in exchange for a fee. |
|
89 |
|
|
90 |
2. You may modify your copy or copies of the Program or any portion |
|
91 |
of it, thus forming a work based on the Program, and copy and |
|
92 |
distribute such modifications or work under the terms of Section 1 |
|
93 |
above, provided that you also meet all of these conditions: |
|
94 |
|
|
95 |
a) You must cause the modified files to carry prominent notices |
|
96 |
stating that you changed the files and the date of any change. |
|
97 |
|
|
98 |
b) You must cause any work that you distribute or publish, that in |
|
99 |
whole or in part contains or is derived from the Program or any |
|
100 |
part thereof, to be licensed as a whole at no charge to all third |
|
101 |
parties under the terms of this License. |
|
102 |
|
|
103 |
c) If the modified program normally reads commands interactively |
|
104 |
when run, you must cause it, when started running for such |
|
105 |
interactive use in the most ordinary way, to print or display an |
|
106 |
announcement including an appropriate copyright notice and a |
|
107 |
notice that there is no warranty (or else, saying that you provide |
|
108 |
a warranty) and that users may redistribute the program under |
|
109 |
these conditions, and telling the user how to view a copy of this |
|
110 |
License. (Exception: if the Program itself is interactive but |
|
111 |
does not normally print such an announcement, your work based on |
|
112 |
the Program is not required to print an announcement.) |
|
113 |
|
|
114 |
These requirements apply to the modified work as a whole. If |
|
115 |
identifiable sections of that work are not derived from the Program, |
|
116 |
and can be reasonably considered independent and separate works in |
|
117 |
themselves, then this License, and its terms, do not apply to those |
|
118 |
sections when you distribute them as separate works. But when you |
|
119 |
distribute the same sections as part of a whole which is a work based |
|
120 |
on the Program, the distribution of the whole must be on the terms of |
|
121 |
this License, whose permissions for other licensees extend to the |
|
122 |
entire whole, and thus to each and every part regardless of who wrote it. |
|
123 |
|
|
124 |
Thus, it is not the intent of this section to claim rights or contest |
|
125 |
your rights to work written entirely by you; rather, the intent is to |
|
126 |
exercise the right to control the distribution of derivative or |
|
127 |
collective works based on the Program. |
|
124 | 128 |
|
125 | 129 |
In addition, mere aggregation of another work not based on the Program |
126 |
with the Program (or with a work based on the Program) on a volume of a |
|
127 |
storage or distribution medium does not bring the other work under the scope |
|
128 |
of this License. |
|
129 |
|
|
130 |
3. You may copy and distribute the Program (or a work based on it, under |
|
131 |
Section 2) in object code or executable form under the terms of Sections 1 |
|
132 |
and 2 above provided that you also do one of the following: |
|
133 |
|
|
134 |
a) Accompany it with the complete corresponding machine-readable source |
|
135 |
code, which must be distributed under the terms of Sections 1 and 2 above |
|
136 |
on a medium customarily used for software interchange; or, |
|
137 |
|
|
138 |
b) Accompany it with a written offer, valid for at least three years, to give |
|
139 |
any third party, for a charge no more than your cost of physically performing |
|
140 |
source distribution, a complete machine-readable copy of the corresponding |
|
141 |
source code, to be distributed under the terms of Sections 1 and 2 above on |
|
142 |
a medium customarily used for software interchange; or, |
|
143 |
|
|
144 |
c) Accompany it with the information you received as to the offer to distribute |
|
145 |
corresponding source code. (This alternative is allowed only for |
|
146 |
noncommercial distribution and only if you received the program in object |
|
147 |
code or executable form with such an offer, in accord with Subsection b |
|
148 |
above.) |
|
130 |
with the Program (or with a work based on the Program) on a volume of |
|
131 |
a storage or distribution medium does not bring the other work under |
|
132 |
the scope of this License. |
|
133 |
|
|
134 |
3. You may copy and distribute the Program (or a work based on it, |
|
135 |
under Section 2) in object code or executable form under the terms of |
|
136 |
Sections 1 and 2 above provided that you also do one of the following: |
|
137 |
|
|
138 |
a) Accompany it with the complete corresponding machine-readable |
|
139 |
source code, which must be distributed under the terms of Sections |
|
140 |
1 and 2 above on a medium customarily used for software interchange; or, |
|
141 |
|
|
142 |
b) Accompany it with a written offer, valid for at least three |
|
143 |
years, to give any third party, for a charge no more than your |
|
144 |
cost of physically performing source distribution, a complete |
|
145 |
machine-readable copy of the corresponding source code, to be |
|
146 |
distributed under the terms of Sections 1 and 2 above on a medium |
|
147 |
customarily used for software interchange; or, |
|
148 |
|
|
149 |
c) Accompany it with the information you received as to the offer |
|
150 |
to distribute corresponding source code. (This alternative is |
|
151 |
allowed only for noncommercial distribution and only if you |
|
152 |
received the program in object code or executable form with such |
|
153 |
an offer, in accord with Subsection b above.) |
|
149 | 154 |
|
150 | 155 |
The source code for a work means the preferred form of the work for |
151 |
making modifications to it. For an executable work, complete source code |
|
152 |
means all the source code for all modules it contains, plus any associated |
|
153 |
interface definition files, plus the scripts used to control compilation and |
|
154 |
installation of the executable. However, as a special exception, the source |
|
155 |
code distributed need not include anything that is normally distributed (in |
|
156 |
either source or binary form) with the major components (compiler, kernel, |
|
157 |
and so on) of the operating system on which the executable runs, unless that |
|
158 |
component itself accompanies the executable. |
|
159 |
|
|
160 |
If distribution of executable or object code is made by offering access to |
|
161 |
copy from a designated place, then offering equivalent access to copy the |
|
162 |
source code from the same place counts as distribution of the source code, |
|
163 |
even though third parties are not compelled to copy the source along with the |
|
164 |
object code. |
|
165 |
|
|
166 |
4. You may not copy, modify, sublicense, or distribute the Program except as |
|
167 |
expressly provided under this License. Any attempt otherwise to copy, |
|
168 |
modify, sublicense or distribute the Program is void, and will automatically |
|
169 |
terminate your rights under this License. However, parties who have received |
|
170 |
copies, or rights, from you under this License will not have their licenses |
|
171 |
terminated so long as such parties remain in full compliance. |
|
172 |
|
|
173 |
5. You are not required to accept this License, since you have not signed it. |
|
174 |
However, nothing else grants you permission to modify or distribute the |
|
175 |
Program or its derivative works. These actions are prohibited by law if you |
|
176 |
do not accept this License. Therefore, by modifying or distributing the |
|
177 |
Program (or any work based on the Program), you indicate your acceptance |
|
178 |
of this License to do so, and all its terms and conditions for copying, |
|
179 |
distributing or modifying the Program or works based on it. |
|
180 |
|
|
181 |
6. Each time you redistribute the Program (or any work based on the |
|
182 |
Program), the recipient automatically receives a license from the original |
|
183 |
licensor to copy, distribute or modify the Program subject to these terms and |
|
184 |
conditions. You may not impose any further restrictions on the recipients' |
|
185 |
exercise of the rights granted herein. You are not responsible for enforcing |
|
186 |
compliance by third parties to this License. |
|
187 |
|
|
188 |
7. If, as a consequence of a court judgment or allegation of patent |
|
189 |
infringement or for any other reason (not limited to patent issues), conditions |
|
190 |
are imposed on you (whether by court order, agreement or otherwise) that |
|
191 |
contradict the conditions of this License, they do not excuse you from the |
|
192 |
conditions of this License. If you cannot distribute so as to satisfy |
|
193 |
simultaneously your obligations under this License and any other pertinent |
|
194 |
obligations, then as a consequence you may not distribute the Program at all. |
|
195 |
For example, if a patent license would not permit royalty-free redistribution |
|
196 |
of the Program by all those who receive copies directly or indirectly through |
|
197 |
you, then the only way you could satisfy both it and this License would be to |
|
156 |
making modifications to it. For an executable work, complete source |
|
157 |
code means all the source code for all modules it contains, plus any |
|
158 |
associated interface definition files, plus the scripts used to |
|
159 |
control compilation and installation of the executable. However, as a |
|
160 |
special exception, the source code distributed need not include |
|
161 |
anything that is normally distributed (in either source or binary |
|
162 |
form) with the major components (compiler, kernel, and so on) of the |
|
163 |
operating system on which the executable runs, unless that component |
|
164 |
itself accompanies the executable. |
|
165 |
|
|
166 |
If distribution of executable or object code is made by offering |
|
167 |
access to copy from a designated place, then offering equivalent |
|
168 |
access to copy the source code from the same place counts as |
|
169 |
distribution of the source code, even though third parties are not |
|
170 |
compelled to copy the source along with the object code. |
|
171 |
|
|
172 |
4. You may not copy, modify, sublicense, or distribute the Program |
|
173 |
except as expressly provided under this License. Any attempt |
|
174 |
otherwise to copy, modify, sublicense or distribute the Program is |
|
175 |
void, and will automatically terminate your rights under this License. |
|
176 |
However, parties who have received copies, or rights, from you under |
|
177 |
this License will not have their licenses terminated so long as such |
|
178 |
parties remain in full compliance. |
|
179 |
|
|
180 |
5. You are not required to accept this License, since you have not |
|
181 |
signed it. However, nothing else grants you permission to modify or |
|
182 |
distribute the Program or its derivative works. These actions are |
|
183 |
prohibited by law if you do not accept this License. Therefore, by |
|
184 |
modifying or distributing the Program (or any work based on the |
|
185 |
Program), you indicate your acceptance of this License to do so, and |
|
186 |
all its terms and conditions for copying, distributing or modifying |
|
187 |
the Program or works based on it. |
|
188 |
|
|
189 |
6. Each time you redistribute the Program (or any work based on the |
|
190 |
Program), the recipient automatically receives a license from the |
|
191 |
original licensor to copy, distribute or modify the Program subject to |
|
192 |
these terms and conditions. You may not impose any further |
|
193 |
restrictions on the recipients' exercise of the rights granted herein. |
|
194 |
You are not responsible for enforcing compliance by third parties to |
|
195 |
this License. |
|
196 |
|
|
197 |
7. If, as a consequence of a court judgment or allegation of patent |
|
198 |
infringement or for any other reason (not limited to patent issues), |
|
199 |
conditions are imposed on you (whether by court order, agreement or |
|
200 |
otherwise) that contradict the conditions of this License, they do not |
|
201 |
excuse you from the conditions of this License. If you cannot |
|
202 |
distribute so as to satisfy simultaneously your obligations under this |
|
203 |
License and any other pertinent obligations, then as a consequence you |
|
204 |
may not distribute the Program at all. For example, if a patent |
|
205 |
license would not permit royalty-free redistribution of the Program by |
|
206 |
all those who receive copies directly or indirectly through you, then |
|
207 |
the only way you could satisfy both it and this License would be to |
|
198 | 208 |
refrain entirely from distribution of the Program. |
199 | 209 |
|
200 |
If any portion of this section is held invalid or unenforceable under any |
|
201 |
particular circumstance, the balance of the section is intended to apply and |
|
202 |
the section as a whole is intended to apply in other circumstances. |
|
203 |
|
|
204 |
It is not the purpose of this section to induce you to infringe any patents or |
|
205 |
other property right claims or to contest validity of any such claims; this |
|
206 |
section has the sole purpose of protecting the integrity of the free software |
|
207 |
distribution system, which is implemented by public license practices. Many |
|
208 |
people have made generous contributions to the wide range of software |
|
209 |
distributed through that system in reliance on consistent application of that |
|
210 |
system; it is up to the author/donor to decide if he or she is willing to |
|
211 |
distribute software through any other system and a licensee cannot impose |
|
212 |
that choice. |
|
213 |
|
|
214 |
This section is intended to make thoroughly clear what is believed to be a |
|
215 |
consequence of the rest of this License. |
|
216 |
|
|
217 |
8. If the distribution and/or use of the Program is restricted in certain |
|
218 |
countries either by patents or by copyrighted interfaces, the original copyright |
|
219 |
holder who places the Program under this License may add an explicit |
|
220 |
geographical distribution limitation excluding those countries, so that |
|
221 |
distribution is permitted only in or among countries not thus excluded. In such |
|
222 |
case, this License incorporates the limitation as if written in the body of this |
|
223 |
License. |
|
224 |
|
|
225 |
9. The Free Software Foundation may publish revised and/or new versions |
|
226 |
of the General Public License from time to time. Such new versions will be |
|
227 |
similar in spirit to the present version, but may differ in detail to address new |
|
228 |
problems or concerns. |
|
229 |
|
|
230 |
Each version is given a distinguishing version number. If the Program specifies |
|
231 |
a version number of this License which applies to it and "any later version", |
|
232 |
you have the option of following the terms and conditions either of that |
|
233 |
version or of any later version published by the Free Software Foundation. If |
|
234 |
the Program does not specify a version number of this License, you may |
|
235 |
choose any version ever published by the Free Software Foundation. |
|
236 |
|
|
237 |
10. If you wish to incorporate parts of the Program into other free programs |
|
238 |
whose distribution conditions are different, write to the author to ask for |
|
239 |
permission. For software which is copyrighted by the Free Software |
|
240 |
Foundation, write to the Free Software Foundation; we sometimes make |
|
241 |
exceptions for this. Our decision will be guided by the two goals of |
|
242 |
preserving the free status of all derivatives of our free software and of |
|
243 |
promoting the sharing and reuse of software generally. |
|
244 |
|
|
245 |
NO WARRANTY |
|
246 |
|
|
247 |
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, |
|
248 |
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT |
|
249 |
PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE |
|
250 |
STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR |
|
251 |
OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT |
|
252 |
WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, |
|
253 |
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
|
254 |
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
|
255 |
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND |
|
256 |
PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE |
|
257 |
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL |
|
258 |
NECESSARY SERVICING, REPAIR OR CORRECTION. |
|
259 |
|
|
260 |
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR |
|
261 |
AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR |
|
262 |
ANY OTHER PARTY WHO MAY MODIFY AND/OR |
|
263 |
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE |
|
264 |
LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, |
|
265 |
SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES |
|
266 |
ARISING OUT OF THE USE OR INABILITY TO USE THE |
|
267 |
PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA |
|
268 |
OR DATA BEING RENDERED INACCURATE OR LOSSES |
|
269 |
SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE |
|
270 |
PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN |
|
271 |
IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF |
|
272 |
THE POSSIBILITY OF SUCH DAMAGES. |
|
273 |
|
|
274 |
END OF TERMS AND CONDITIONS |
|
210 |
If any portion of this section is held invalid or unenforceable under |
|
211 |
any particular circumstance, the balance of the section is intended to |
|
212 |
apply and the section as a whole is intended to apply in other |
|
213 |
circumstances. |
|
214 |
|
|
215 |
It is not the purpose of this section to induce you to infringe any |
|
216 |
patents or other property right claims or to contest validity of any |
|
217 |
such claims; this section has the sole purpose of protecting the |
|
218 |
integrity of the free software distribution system, which is |
|
219 |
implemented by public license practices. Many people have made |
|
220 |
generous contributions to the wide range of software distributed |
|
221 |
through that system in reliance on consistent application of that |
|
222 |
system; it is up to the author/donor to decide if he or she is willing |
|
223 |
to distribute software through any other system and a licensee cannot |
|
224 |
impose that choice. |
|
225 |
|
|
226 |
This section is intended to make thoroughly clear what is believed to |
|
227 |
be a consequence of the rest of this License. |
|
228 |
|
|
229 |
8. If the distribution and/or use of the Program is restricted in |
|
230 |
certain countries either by patents or by copyrighted interfaces, the |
|
231 |
original copyright holder who places the Program under this License |
|
232 |
may add an explicit geographical distribution limitation excluding |
|
233 |
those countries, so that distribution is permitted only in or among |
|
234 |
countries not thus excluded. In such case, this License incorporates |
|
235 |
the limitation as if written in the body of this License. |
|
236 |
|
|
237 |
9. The Free Software Foundation may publish revised and/or new versions |
|
238 |
of the General Public License from time to time. Such new versions will |
|
239 |
be similar in spirit to the present version, but may differ in detail to |
|
240 |
address new problems or concerns. |
|
241 |
|
|
242 |
Each version is given a distinguishing version number. If the Program |
|
243 |
specifies a version number of this License which applies to it and "any |
|
244 |
later version", you have the option of following the terms and conditions |
|
245 |
either of that version or of any later version published by the Free |
|
246 |
Software Foundation. If the Program does not specify a version number of |
|
247 |
this License, you may choose any version ever published by the Free Software |
|
248 |
Foundation. |
|
249 |
|
|
250 |
10. If you wish to incorporate parts of the Program into other free |
|
251 |
programs whose distribution conditions are different, write to the author |
|
252 |
to ask for permission. For software which is copyrighted by the Free |
|
253 |
Software Foundation, write to the Free Software Foundation; we sometimes |
|
254 |
make exceptions for this. Our decision will be guided by the two goals |
|
255 |
of preserving the free status of all derivatives of our free software and |
|
256 |
of promoting the sharing and reuse of software generally. |
|
257 |
|
|
258 |
NO WARRANTY |
|
259 |
|
|
260 |
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY |
|
261 |
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN |
|
262 |
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES |
|
263 |
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED |
|
264 |
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
|
265 |
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS |
|
266 |
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE |
|
267 |
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, |
|
268 |
REPAIR OR CORRECTION. |
|
269 |
|
|
270 |
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING |
|
271 |
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR |
|
272 |
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, |
|
273 |
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING |
|
274 |
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED |
|
275 |
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY |
|
276 |
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER |
|
277 |
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE |
|
278 |
POSSIBILITY OF SUCH DAMAGES. |
|
279 |
|
|
280 |
END OF TERMS AND CONDITIONS |
|
281 |
|
|
282 |
How to Apply These Terms to Your New Programs |
|
283 |
|
|
284 |
If you develop a new program, and you want it to be of the greatest |
|
285 |
possible use to the public, the best way to achieve this is to make it |
|
286 |
free software which everyone can redistribute and change under these terms. |
|
287 |
|
|
288 |
To do so, attach the following notices to the program. It is safest |
|
289 |
to attach them to the start of each source file to most effectively |
|
290 |
convey the exclusion of warranty; and each file should have at least |
|
291 |
the "copyright" line and a pointer to where the full notice is found. |
|
292 |
|
|
293 |
<one line to give the program's name and a brief idea of what it does.> |
|
294 |
Copyright (C) <year> <name of author> |
|
295 |
|
|
296 |
This program is free software; you can redistribute it and/or modify |
|
297 |
it under the terms of the GNU General Public License as published by |
|
298 |
the Free Software Foundation; either version 2 of the License, or |
|
299 |
(at your option) any later version. |
|
300 |
|
|
301 |
This program is distributed in the hope that it will be useful, |
|
302 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
303 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
304 |
GNU General Public License for more details. |
|
305 |
|
|
306 |
You should have received a copy of the GNU General Public License along |
|
307 |
with this program; if not, write to the Free Software Foundation, Inc., |
|
308 |
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
|
309 |
|
|
310 |
Also add information on how to contact you by electronic and paper mail. |
|
311 |
|
|
312 |
If the program is interactive, make it output a short notice like this |
|
313 |
when it starts in an interactive mode: |
|
314 |
|
|
315 |
Gnomovision version 69, Copyright (C) year name of author |
|
316 |
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. |
|
317 |
This is free software, and you are welcome to redistribute it |
|
318 |
under certain conditions; type `show c' for details. |
|
319 |
|
|
320 |
The hypothetical commands `show w' and `show c' should show the appropriate |
|
321 |
parts of the General Public License. Of course, the commands you use may |
|
322 |
be called something other than `show w' and `show c'; they could even be |
|
323 |
mouse-clicks or menu items--whatever suits your program. |
|
324 |
|
|
325 |
You should also get your employer (if you work as a programmer) or your |
|
326 |
school, if any, to sign a "copyright disclaimer" for the program, if |
|
327 |
necessary. Here is a sample; alter the names: |
|
328 |
|
|
329 |
Yoyodyne, Inc., hereby disclaims all copyright interest in the program |
|
330 |
`Gnomovision' (which makes passes at compilers) written by James Hacker. |
|
331 |
|
|
332 |
<signature of Ty Coon>, 1 April 1989 |
|
333 |
Ty Coon, President of Vice |
|
334 |
|
|
335 |
This General Public License does not permit incorporating your program into |
|
336 |
proprietary programs. If your program is a subroutine library, you may |
|
337 |
consider it more useful to permit linking proprietary applications with the |
|
338 |
library. If this is what you want to do, use the GNU Lesser General |
|
339 |
Public License instead of this License. |
drupal7/sites/all/modules/hidden_captcha/hidden_captcha.info | ||
---|---|---|
1 |
name = "Hidden CAPTCHA" |
|
2 |
description = "The hidden CAPTCHA creates a hidden box (requires CSS) that the user must NOT fill. This is useful only to block robots." |
|
3 |
package = "Spam control" |
|
1 |
name = Hidden CAPTCHA |
|
2 |
description = The hidden CAPTCHA creates a hidden box (requires CSS) that the user must NOT fill. This is useful only to block robots. |
|
3 |
core = 7.x |
|
4 |
package = Spam control |
|
4 | 5 |
dependencies[] = captcha |
5 |
core = "7.x" |
|
6 |
version = "7.x-1.x-dev" |
|
7 |
project = "hidden_captcha" |
|
8 | 6 |
configure = admin/config/people/captcha/hidden_captcha |
9 | 7 |
|
10 |
; Information added by drupal.org packaging script on 2011-06-13
|
|
11 |
version = "7.x-1.0"
|
|
8 |
; Information added by Drupal.org packaging script on 2017-01-23
|
|
9 |
version = "7.x-1.1"
|
|
12 | 10 |
core = "7.x" |
13 | 11 |
project = "hidden_captcha" |
14 |
datestamp = "1307982415"
|
|
12 |
datestamp = "1485204485"
|
|
15 | 13 |
|
drupal7/sites/all/modules/hidden_captcha/hidden_captcha.install | ||
---|---|---|
1 | 1 |
<?php |
2 |
// $Id: hidden_captcha.install,v 1.1.2.1 2010/06/29 05:55:33 alexiswilke Exp $ |
|
3 | 2 |
|
4 | 3 |
/** |
5 |
* Implementation of hook_uninstall(). |
|
4 |
* @file |
|
5 |
* Install, update, and uninstall functions for the Hidden CAPTCHA module. |
|
6 |
*/ |
|
7 |
|
|
8 |
/** |
|
9 |
* Implements hook_uninstall(). |
|
6 | 10 |
* |
7 |
* On uninstall: remove module variables and clear variable cache
|
|
11 |
* On uninstall: Remove module variables and clear variable cache.
|
|
8 | 12 |
*/ |
9 | 13 |
function hidden_captcha_uninstall() { |
10 | 14 |
db_query("DELETE FROM {variable} WHERE name LIKE 'hidden_captcha_%%'"); |
drupal7/sites/all/modules/hidden_captcha/hidden_captcha.module | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
|
3 | 3 |
/** |
4 |
* Implementation of hook_help(). |
|
4 |
* @file |
|
5 |
* All code for the Foo Bar module, except installation-related code. |
|
6 |
*/ |
|
7 |
|
|
8 |
/** |
|
9 |
* Implements hook_help(). |
|
5 | 10 |
*/ |
6 | 11 |
function hidden_captcha_help($path, $arg) { |
7 | 12 |
switch ($path) { |
8 | 13 |
case 'admin/config/people/captcha/hidden_captcha': |
9 |
return '<p>'. t('This CAPTCHA presents a text field that we expect no one to fill. The text field can be given any name and will be hidden from view using CSS.') .'</p>';
|
|
14 |
return '<p>' . t('This CAPTCHA presents a text field that we expect no one to fill. The text field can be given any name and will be hidden from view using CSS.') . '</p>';
|
|
10 | 15 |
} |
11 | 16 |
} |
12 | 17 |
|
13 | 18 |
/** |
14 |
* Implementation of hook_menu().
|
|
19 |
* Implements hook_menu().
|
|
15 | 20 |
*/ |
16 | 21 |
function hidden_captcha_menu() { |
17 | 22 |
$items = array(); |
... | ... | |
35 | 40 |
'#type' => 'textfield', |
36 | 41 |
'#title' => t('Hidden text field label'), |
37 | 42 |
'#description' => t( |
38 |
"This is the hidden captcha form field's label, describing the expected input.<br />". |
|
39 |
"<strong>It is highly recommended to change it!</strong><br />". |
|
40 |
"The label should be as \"machine-readable\" as possible, encouraging spambots to fill in the field. An example might be a simple math challenge.<br />". |
|
43 |
"This is the hidden captcha form field's label, describing the expected input.<br />" .
|
|
44 |
"<strong>It is highly recommended to change it!</strong><br />" .
|
|
45 |
"The label should be as \"machine-readable\" as possible, encouraging spambots to fill in the field. An example might be a simple math challenge.<br />" .
|
|
41 | 46 |
"The label will only be visible to people who do not have CSS enabled and to robots." |
42 | 47 |
), |
43 | 48 |
'#default_value' => variable_get('hidden_captcha_label', 'Website URL'), |
... | ... | |
46 | 51 |
} |
47 | 52 |
|
48 | 53 |
/** |
49 |
* Implementation of hook_captcha().
|
|
54 |
* Implements hook_captcha().
|
|
50 | 55 |
*/ |
51 | 56 |
function hidden_captcha_captcha($op, $captcha_type = '') { |
52 | 57 |
switch ($op) { |
... | ... | |
58 | 63 |
$captcha['form']['captcha_response'] = array( |
59 | 64 |
'#type' => 'textfield', |
60 | 65 |
'#title' => variable_get('hidden_captcha_label', 'Website URL'), |
61 |
'#required' => FALSE |
|
66 |
'#required' => FALSE, |
|
67 |
'#attributes' => array('tabindex' => '-1'), |
|
62 | 68 |
); |
63 | 69 |
return $captcha; |
64 | 70 |
} |
... | ... | |
67 | 73 |
} |
68 | 74 |
|
69 | 75 |
/** |
70 |
* Implementation of hook_theme().
|
|
76 |
* Implements hook_theme().
|
|
71 | 77 |
*/ |
72 | 78 |
function hidden_captcha_theme() { |
73 | 79 |
return array( |
... | ... | |
79 | 85 |
} |
80 | 86 |
|
81 | 87 |
/** |
82 |
* Implementation of theme_hook().
|
|
88 |
* Implements theme_hook().
|
|
83 | 89 |
*/ |
84 | 90 |
function theme_hidden_captcha_captcha($element) { |
85 | 91 |
$captcha = theme_captcha($element); |
... | ... | |
89 | 95 |
$class = ""; |
90 | 96 |
for ($i = 0; $i < 64; ++$i) $class .= substr($chars, rand(0, strlen($chars)-1), 1); |
91 | 97 |
//hide the random class via css |
92 |
drupal_add_css(".$class{width:0;height:0;overflow:hidden;}","inline"); // TODO: move the random class to an external file |
|
98 |
drupal_add_css(".$class{width:0;height:0;overflow:hidden;}", "inline"); // TODO: move the random class to an external file
|
|
93 | 99 |
//html for the captcha |
94 | 100 |
$captcha = "<div class=\"$class\">" . $captcha . "</div>"; |
95 | 101 |
} |
drupal7/sites/all/modules/token/tests/token_test.info | ||
---|---|---|
5 | 5 |
files[] = token_test.module |
6 | 6 |
hidden = TRUE |
7 | 7 |
|
8 |
; Information added by Drupal.org packaging script on 2015-02-28
|
|
9 |
version = "7.x-1.6"
|
|
8 |
; Information added by Drupal.org packaging script on 2017-01-25
|
|
9 |
version = "7.x-1.7"
|
|
10 | 10 |
core = "7.x" |
11 | 11 |
project = "token" |
12 |
datestamp = "1425149060"
|
|
12 |
datestamp = "1485316088"
|
|
13 | 13 |
|
drupal7/sites/all/modules/token/token.info | ||
---|---|---|
3 | 3 |
core = 7.x |
4 | 4 |
files[] = token.test |
5 | 5 |
|
6 |
; Information added by Drupal.org packaging script on 2015-02-28
|
|
7 |
version = "7.x-1.6"
|
|
6 |
; Information added by Drupal.org packaging script on 2017-01-25
|
|
7 |
version = "7.x-1.7"
|
|
8 | 8 |
core = "7.x" |
9 | 9 |
project = "token" |
10 |
datestamp = "1425149060"
|
|
10 |
datestamp = "1485316088"
|
|
11 | 11 |
|
drupal7/sites/all/modules/token/token.install | ||
---|---|---|
21 | 21 |
$problems = array_unique($problem['problems']); |
22 | 22 |
$problems = array_map('check_plain', $problems); |
23 | 23 |
$token_problems[$problem_key] = $problem['label'] . theme('item_list', array('items' => $problems)); |
24 |
$requirements['token-' . $problem_key] = array( |
|
25 |
'title' => $problem['label'], |
|
26 |
'value' => theme('item_list', array('items' => $problems)), |
|
27 |
'severity' => $problem['severity'], |
|
28 |
); |
|
24 | 29 |
} |
25 |
else { |
|
26 |
unset($token_problems[$problem_key]); |
|
27 |
} |
|
28 |
} |
|
29 |
if (!empty($token_problems)) { |
|
30 |
$requirements['token_problems'] = array( |
|
31 |
'title' => $t('Tokens'), |
|
32 |
'value' => $t('Problems detected'), |
|
33 |
'severity' => REQUIREMENT_WARNING, |
|
34 |
'description' => '<p>' . implode('</p><p>', $token_problems) . '</p>', //theme('item_list', array('items' => $token_problems)), |
|
35 |
); |
|
36 | 30 |
} |
37 | 31 |
} |
38 | 32 |
|
... | ... | |
272 | 266 |
$token_info = token_info(); |
273 | 267 |
$token_problems = array( |
274 | 268 |
'not-array' => array( |
275 |
'label' => t('The following tokens or token types are not defined as arrays:'), |
|
269 |
'label' => t('Tokens or token types not defined as arrays'), |
|
270 |
'severity' => REQUIREMENT_ERROR, |
|
276 | 271 |
), |
277 | 272 |
'missing-info' => array( |
278 |
'label' => t('The following tokens or token types are missing required name and/or description information:'), |
|
273 |
'label' => t('Tokens or token types missing name property'), |
|
274 |
'severity' => REQUIREMENT_WARNING, |
|
279 | 275 |
), |
280 | 276 |
'type-no-tokens' => array( |
281 |
'label' => t('The following token types do not have any tokens defined:'), |
|
277 |
'label' => t('Token types do not have any tokens defined'), |
|
278 |
'severity' => REQUIREMENT_INFO, |
|
282 | 279 |
), |
283 | 280 |
'tokens-no-type' => array( |
284 |
'label' => t('The following token types are not defined but have tokens:'), |
|
281 |
'label' => t('Token types are not defined but have tokens'), |
|
282 |
'severity' => REQUIREMENT_INFO, |
|
285 | 283 |
), |
286 | 284 |
'duplicate' => array( |
287 |
'label' => t('The following token or token types are defined by multiple modules:') |
|
285 |
'label' => t('Token or token types are defined by multiple modules'), |
|
286 |
'severity' => REQUIREMENT_ERROR, |
|
288 | 287 |
), |
289 | 288 |
); |
290 | 289 |
|
... | ... | |
295 | 294 |
$token_problems['not-array']['problems'][] = "\$info['types']['$type']"; |
296 | 295 |
continue; |
297 | 296 |
} |
298 |
elseif (!isset($type_info['name']) || !isset($type_info['description'])) {
|
|
297 |
elseif (!isset($type_info['name'])) { |
|
299 | 298 |
$token_problems['missing-info']['problems'][] = "\$info['types']['$type']"; |
300 | 299 |
} |
300 |
elseif (is_array($type_info['name'])) { |
|
301 |
$token_problems['duplicate']['problems'][] = "\$info['types']['$type']"; |
|
302 |
} |
|
301 | 303 |
elseif (empty($token_info['tokens'][$real_type])) { |
302 | 304 |
$token_problems['type-no-tokens']['problems'][] = "\$info['tokens']['$real_type']"; |
303 | 305 |
} |
... | ... | |
315 | 317 |
$token_problems['not-array']['problems'][] = "\$info['tokens']['$type']['$token']"; |
316 | 318 |
continue; |
317 | 319 |
} |
318 |
elseif (!isset($tokens[$token]['name']) || !isset($tokens[$token]['description'])) {
|
|
320 |
elseif (!isset($tokens[$token]['name'])) { |
|
319 | 321 |
$token_problems['missing-info']['problems'][] = "\$info['tokens']['$type']['$token']"; |
320 | 322 |
} |
321 |
elseif (is_array($tokens[$token]['name']) || is_array($tokens[$token]['description'])) {
|
|
323 |
elseif (is_array($tokens[$token]['name'])) { |
|
322 | 324 |
$token_problems['duplicate']['problems'][] = "\$info['tokens']['$type']['$token']"; |
323 | 325 |
} |
324 | 326 |
} |
drupal7/sites/all/modules/token/token.module | ||
---|---|---|
274 | 274 |
*/ |
275 | 275 |
function token_field_widget_form_alter(&$element, &$form_state, $context) { |
276 | 276 |
if (!empty($element['#description']) && !empty($context['instance']['description'])) { |
277 |
$element['#description'] = filter_xss_admin(token_replace($context['instance']['description'])); |
|
277 |
$instance = $context['instance']; |
|
278 |
if (module_exists('i18n_field')) { |
|
279 |
$instance = i18n_string_object_translate('field_instance', $instance); |
|
280 |
} |
|
281 |
$element['#description'] = field_filter_xss(token_replace($instance['description'])); |
|
278 | 282 |
} |
279 | 283 |
} |
280 | 284 |
|
... | ... | |
719 | 723 |
|
720 | 724 |
// Validate if an element must have a minimum number of tokens. |
721 | 725 |
if (isset($element['#min_tokens']) && count($tokens) < $element['#min_tokens']) { |
722 |
// @todo Change this error message to include the minimum number. |
|
723 |
$error = format_plural($element['#min_tokens'], 'The %element-title cannot contain fewer than one token.', 'The %element-title must contain at least @count tokens.', array('%element-title' => $title)); |
|
726 |
$error = format_plural($element['#min_tokens'], '%name must contain at least one token.', '%name must contain at least @count tokens.', array('%name' => $title)); |
|
724 | 727 |
form_error($element, $error); |
725 | 728 |
} |
726 | 729 |
|
727 | 730 |
// Validate if an element must have a maximum number of tokens. |
728 | 731 |
if (isset($element['#max_tokens']) && count($tokens) > $element['#max_tokens']) { |
729 |
// @todo Change this error message to include the maximum number. |
|
730 |
$error = format_plural($element['#max_tokens'], 'The %element-title must contain as most one token.', 'The %element-title must contain at most @count tokens.', array('%element-title' => $title)); |
|
732 |
$error = format_plural($element['#max_tokens'], '%name must contain at most one token.', '%name must contain at most @count tokens.', array('%name' => $title)); |
|
731 | 733 |
form_error($element, $error); |
732 | 734 |
} |
733 | 735 |
|
... | ... | |
735 | 737 |
if (isset($element['#token_types'])) { |
736 | 738 |
$invalid_tokens = token_get_invalid_tokens_by_context($tokens, $element['#token_types']); |
737 | 739 |
if ($invalid_tokens) { |
738 |
form_error($element, t('The %element-title is using the following invalid tokens: @invalid-tokens.', array('%element-title' => $title, '@invalid-tokens' => implode(', ', $invalid_tokens))));
|
|
740 |
form_error($element, t('%name is using the following invalid tokens: @invalid-tokens.', array('%name' => $title, '@invalid-tokens' => implode(', ', $invalid_tokens))));
|
|
739 | 741 |
} |
740 | 742 |
} |
741 | 743 |
|
... | ... | |
983 | 985 |
// parent. |
984 | 986 |
$token_parents[] = $token_type; |
985 | 987 |
} |
986 |
elseif (in_array($token, array_slice($token_parents, 1))) { |
|
988 |
elseif (in_array($token, array_slice($token_parents, 1), TRUE)) {
|
|
987 | 989 |
// Prevent duplicate recursive tokens. For example, this will prevent |
988 | 990 |
// the tree from generating the following tokens or deeper: |
989 | 991 |
// [comment:parent:parent] |
drupal7/sites/all/modules/token/token.pages.inc | ||
---|---|---|
199 | 199 |
$row = $defaults; |
200 | 200 |
$row['id'] = _token_clean_css_identifier($token); |
201 | 201 |
$row['data']['name'] = $token_info['name']; |
202 |
$row['data']['description'] = $token_info['description'];
|
|
202 |
$row['data']['description'] = isset($token_info['description']) ? $token_info['description'] : '';
|
|
203 | 203 |
|
204 | 204 |
if ($is_group) { |
205 | 205 |
// This is a token type/group. |
... | ... | |
207 | 207 |
} |
208 | 208 |
else { |
209 | 209 |
// This is a token. |
210 |
$row['data']['token'] = array(); |
|
210 | 211 |
$row['data']['token']['data'] = $token; |
211 | 212 |
$row['data']['token']['class'][] = 'token-key'; |
212 | 213 |
if (isset($token_info['value'])) { |
drupal7/sites/all/modules/token/token.tokens.inc | ||
---|---|---|
1392 | 1392 |
*/ |
1393 | 1393 |
function field_tokens($type, $tokens, array $data = array(), array $options = array()) { |
1394 | 1394 |
$replacements = array(); |
1395 |
$sanitize = !empty($options['sanitize']); |
|
1396 | 1395 |
$langcode = isset($options['language']) ? $options['language']->language : NULL; |
1397 | 1396 |
|
1398 | 1397 |
// Entity tokens. |
... | ... | |
1437 | 1436 |
/** |
1438 | 1437 |
* Pre-render callback for field output used with tokens. |
1439 | 1438 |
*/ |
1440 |
function token_pre_render_field_token(&$elements) {
|
|
1439 |
function token_pre_render_field_token($elements) { |
|
1441 | 1440 |
// Remove the field theme hook, attachments, and JavaScript states. |
1442 | 1441 |
unset($elements['#theme']); |
1443 | 1442 |
unset($elements['#states']); |
drupal7/sites/all/modules/views_pdf/modules/views_append/views_append.info | ||
---|---|---|
7 | 7 |
files[] = views_append_handler_append_view.inc |
8 | 8 |
|
9 | 9 |
|
10 |
; Information added by Drupal.org packaging script on 2017-01-13
|
|
11 |
version = "7.x-1.6"
|
|
10 |
; Information added by Drupal.org packaging script on 2017-01-20
|
|
11 |
version = "7.x-1.7"
|
|
12 | 12 |
core = "7.x" |
13 | 13 |
project = "views_pdf" |
14 |
datestamp = "1484322229"
|
|
14 |
datestamp = "1484920085"
|
|
15 | 15 |
|
drupal7/sites/all/modules/views_pdf/modules/views_view_field/views_view_field.info | ||
---|---|---|
7 | 7 |
files[] = views_view_field_handler_include_view.inc |
8 | 8 |
|
9 | 9 |
|
10 |
; Information added by Drupal.org packaging script on 2017-01-13
|
|
11 |
version = "7.x-1.6"
|
|
10 |
; Information added by Drupal.org packaging script on 2017-01-20
|
|
11 |
version = "7.x-1.7"
|
|
12 | 12 |
core = "7.x" |
13 | 13 |
project = "views_pdf" |
14 |
datestamp = "1484322229"
|
|
14 |
datestamp = "1484920085"
|
|
15 | 15 |
|
drupal7/sites/all/modules/views_pdf/views_pdf.info | ||
---|---|---|
15 | 15 |
files[] = field_plugins/views_pdf_handler_page_number.inc |
16 | 16 |
files[] = field_plugins/views_pdf_handler_page_break.inc |
17 | 17 |
|
18 |
; Information added by Drupal.org packaging script on 2017-01-13
|
|
19 |
version = "7.x-1.6"
|
|
18 |
; Information added by Drupal.org packaging script on 2017-01-20
|
|
19 |
version = "7.x-1.7"
|
|
20 | 20 |
core = "7.x" |
21 | 21 |
project = "views_pdf" |
22 |
datestamp = "1484322229"
|
|
22 |
datestamp = "1484920085"
|
|
23 | 23 |
|
drupal7/sites/all/modules/views_pdf/views_pdf.install | ||
---|---|---|
60 | 60 |
} |
61 | 61 |
|
62 | 62 |
/** |
63 |
* Update all PDF displays to use pager. |
|
64 |
* This should maintain existing pager settings. |
|
65 |
* Test your views before using in production. |
|
63 |
* The previous update to version 7.x-1.6 contained a faulty views_pdf_update_7000() function that |
|
64 |
* created a faulty views display object for some pdf displays (i.e. pdf display with the default "Display a specified number of items | 10" pager ) |
|
65 |
* This resulted in a display_option['pager'] NULL array element, which broke the pdf display. |
|
66 |
* |
|
67 |
* This new update replaces the views_pdf_update_7000() function and fixes the faulty array element |
|
68 |
* It is recommended that users avoid 7.x-1.6 and update to 7.x-1.7 version |
|
66 | 69 |
*/ |
67 |
function views_pdf_update_7000() {
|
|
70 |
function views_pdf_update_7101() {
|
|
68 | 71 |
$views = views_get_all_views(); |
69 | 72 |
|
70 | 73 |
foreach ($views as $key => $view) { |
71 |
foreach ($view->display as $key => &$display) {
|
|
74 |
foreach ($view->display as $key => $display) { |
|
72 | 75 |
if($display->display_plugin == 'pdf') { |
73 |
if(empty($display->display_options['defaults']['pager'])) { |
|
74 |
$display->display_options['pager'] = $view->display[$display->id]->display_options['pager']; |
|
75 |
$display->display_options['defaults']['pager'] = FALSE; |
|
76 |
if(isset($display->display_options['pager'])) { |
|
77 |
if (!isset($display->display_options['defaults']['pager'])) { |
|
78 |
$display->display_options['defaults']['pager'] = FALSE; |
|
79 |
} |
|
80 |
if (!isset($display->display_options['defaults']['pager_options'])) { |
|
81 |
$display->display_options['defaults']['pager_options'] = FALSE; |
|
82 |
} |
|
76 | 83 |
} |
77 | 84 |
} |
78 | 85 |
} |
drupal7/sites/all/modules/views_slideshow/contrib/views_slideshow_cycle/js/views_slideshow_cycle.js | ||
---|---|---|
120 | 120 |
$('#views_slideshow_cycle_teaser_section_' + settings.vss_id).hover(mouseIn, mouseOut); |
121 | 121 |
} |
122 | 122 |
} |
123 |
|
|
124 |
// Play on hover. |
|
125 |
if (settings.play_on_hover) { |
|
126 |
var mouseIn = function() { |
|
127 |
Drupal.viewsSlideshow.action({ "action": 'play', "slideshowID": settings.slideshowId, "force": true }); |
|
128 |
} |
|
129 |
|
|
130 |
var mouseOut = function() { |
|
131 |
Drupal.viewsSlideshow.action({ "action": 'pause', "slideshowID": settings.slideshowId }); |
|
132 |
} |
|
133 |
|
|
134 |
if (jQuery.fn.hoverIntent) { |
|
135 |
$('#views_slideshow_cycle_teaser_section_' + settings.vss_id).hoverIntent(mouseIn, mouseOut); |
|
136 |
} |
|
137 |
else { |
|
138 |
$('#views_slideshow_cycle_teaser_section_' + settings.vss_id).hover(mouseIn, mouseOut); |
|
139 |
} |
|
140 |
} |
|
123 | 141 |
|
124 | 142 |
// Pause on clicking of the slide. |
125 | 143 |
if (settings.pause_on_click) { |
... | ... | |
197 | 215 |
|
198 | 216 |
// These process options that look like {top:50, bottom:20} |
199 | 217 |
case "animIn": |
218 |
case "animInDelay": |
|
200 | 219 |
case "animOut": |
220 |
case "animOutDelay": |
|
201 | 221 |
case "cssBefore": |
202 | 222 |
case "cssAfter": |
203 | 223 |
case "shuffle": |
drupal7/sites/all/modules/views_slideshow/contrib/views_slideshow_cycle/theme/views-slideshow-cycle-main-frame-row.tpl.php | ||
---|---|---|
11 | 11 |
* @ingroup views_templates |
12 | 12 |
*/ |
13 | 13 |
?> |
14 |
<div id="views_slideshow_cycle_div_<?php print $variables['vss_id']; ?>_<?php print $variables['count']; ?>" class="<?php print $classes; ?>"> |
|
14 |
<div id="views_slideshow_cycle_div_<?php print $variables['vss_id']; ?>_<?php print $variables['count']; ?>" class="<?php print $classes; ?>" <?php print $aria; ?>>
|
|
15 | 15 |
<?php print $rendered_items; ?> |
16 | 16 |
</div> |
drupal7/sites/all/modules/views_slideshow/contrib/views_slideshow_cycle/theme/views_slideshow_cycle.theme.inc | ||
---|---|---|
132 | 132 |
|
133 | 133 |
$vars['items_per_slide'] = $items_per_slide; |
134 | 134 |
|
135 |
//drupal_set_message(var_export($vars['options']['widgets'],TRUE)); |
|
136 |
$widgets = $vars['options']['widgets']; |
|
137 |
if (isset($options['top']['views_slideshow_pager']['enabled']) && $options['top']['views_slideshow_pager']['enabled']) { |
|
138 |
$aria = "aria-labelledby='views_slideshow_pager_field_item_top_${vss_id}_"; |
|
139 |
} |
|
140 |
else { |
|
141 |
$aria = "aria-labelledby='views_slideshow_pager_field_item_bottom_${vss_id}_"; |
|
142 |
} |
|
143 |
|
|
144 |
|
|
135 | 145 |
$items = array(); |
136 | 146 |
$slideshow_count = 0; |
137 | 147 |
$rendered_rows = ''; |
... | ... | |
143 | 153 |
'items' => $items, |
144 | 154 |
'count' => $slideshow_count, |
145 | 155 |
'view' => $vars['view'], |
156 |
'aria' => $aria . $slideshow_count . "'", |
|
146 | 157 |
)); |
147 | 158 |
$items = array(); |
148 | 159 |
$slideshow_count++; |
... | ... | |
174 | 185 |
'item_count' => $item_count, |
175 | 186 |
'count' => $vars['count'], |
176 | 187 |
'view' => $vars['view'], |
177 |
'length' => count($vars['view']->result),
|
|
188 |
'length' => count($vars['items']),
|
|
178 | 189 |
)); |
179 | 190 |
} |
180 | 191 |
} |
... | ... | |
183 | 194 |
* Implements hook_preprocess_views_slideshow_cycle_main_frame_row_item(). |
184 | 195 |
*/ |
185 | 196 |
function template_preprocess_views_slideshow_cycle_main_frame_row_item(&$vars) { |
186 |
$vars['classes_array'][] = 'views-row views-row-' . $vars['count']; |
|
187 |
$vars['classes_array'][] = ($vars['count'] % 2) ? 'views-row-even' : 'views-row-odd'; |
|
197 |
$vars['classes_array'][] = 'views-row views-row-' . $vars['item_count'];
|
|
198 |
$vars['classes_array'][] = ($vars['item_count'] % 2) ? 'views-row-even' : 'views-row-odd';
|
|
188 | 199 |
if ($vars['count'] == 0) { |
189 | 200 |
$vars['classes_array'][] = 'views-row-first'; |
190 | 201 |
} |
... | ... | |
245 | 256 |
$vars['slide_count'] = ceil($vars['slide_count']); |
246 | 257 |
} |
247 | 258 |
} |
259 |
|
|
260 |
/** |
|
261 |
* Backwards compatability wrapper. |
|
262 |
* |
|
263 |
* @see template_preprocess_views_slideshow_cycle_main_frame(). |
|
264 |
*/ |
|
265 |
function _views_slideshow_cycle_preprocess_views_slideshow_cycle_main_frame(&$vars) { |
|
266 |
template_preprocess_views_slideshow_cycle_main_frame($vars); |
|
267 |
} |
|
268 |
|
|
269 |
/** |
|
270 |
* Backwards compatability wrapper. |
|
271 |
* |
|
272 |
* @see template_preprocess_views_slideshow_cycle_main_frame_row(). |
|
273 |
*/ |
|
274 |
function _views_slideshow_cycle_preprocess_views_slideshow_cycle_main_frame_row(&$vars) { |
|
275 |
template_preprocess_views_slideshow_cycle_main_frame_row($vars); |
|
276 |
} |
|
277 |
|
|
278 |
/** |
|
279 |
* Backwards compatability wrapper. |
|
280 |
* |
|
281 |
* @see template_preprocess_views_slideshow_cycle_main_frame_row_item(). |
|
282 |
*/ |
|
283 |
function _views_slideshow_cycle_preprocess_views_slideshow_cycle_main_frame_row_item(&$vars) { |
|
284 |
template_preprocess_views_slideshow_cycle_main_frame_row_item($vars); |
|
285 |
} |
drupal7/sites/all/modules/views_slideshow/contrib/views_slideshow_cycle/views_slideshow_cycle.info | ||
---|---|---|
5 | 5 |
package = Views |
6 | 6 |
core = 7.x |
7 | 7 |
|
8 |
; Information added by Drupal.org packaging script on 2017-01-05
|
|
9 |
version = "7.x-3.4"
|
|
8 |
; Information added by Drupal.org packaging script on 2017-01-19
|
|
9 |
version = "7.x-3.5"
|
|
10 | 10 |
core = "7.x" |
11 | 11 |
project = "views_slideshow" |
12 |
datestamp = "1483641845"
|
|
12 |
datestamp = "1484857386"
|
|
13 | 13 |
|
drupal7/sites/all/modules/views_slideshow/contrib/views_slideshow_cycle/views_slideshow_cycle.install | ||
---|---|---|
45 | 45 |
'severity' => REQUIREMENT_ERROR, |
46 | 46 |
'value' => t('Library required for Views Slideshow Cycle'), |
47 | 47 |
'description' => t('You need to install the jQuery cycle plugin. Create a directory in sites/all/libraries called jquery.cycle, and then copy jquery.cycle.all.js into it. You can find the plugin at !url.', array( |
48 |
'!url' => l(t('GitHub)', 'https://raw.githubusercontent.com/malsup/cycle/3.0.3/jquery.cycle.all.js', array('attributes' => array('target' => '_blank')))),
|
|
48 |
'!url' => l(t('GitHub'), 'https://raw.githubusercontent.com/malsup/cycle/3.0.3/jquery.cycle.all.js', array('attributes' => array('target' => '_blank'))),
|
|
49 | 49 |
)), |
50 | 50 |
); |
51 | 51 |
} |
drupal7/sites/all/modules/views_slideshow/contrib/views_slideshow_cycle/views_slideshow_cycle.views_slideshow.inc | ||
---|---|---|
51 | 51 |
// Action. |
52 | 52 |
'pause' => array('default' => 1), |
53 | 53 |
'pause_on_click' => array('default' => 0), |
54 |
'play_on_hover' => array('default' => 0), |
|
54 | 55 |
'action_advanced' => array('default' => 0), |
55 | 56 |
'start_paused' => array('default' => 0), |
56 | 57 |
'remember_slide' => array('default' => 0), |
... | ... | |
219 | 220 |
'#title' => t('Pause on hover'), |
220 | 221 |
'#default_value' => $view->options['views_slideshow_cycle']['pause'], |
221 | 222 |
'#description' => t('Pause when hovering on the slideshow image.'), |
223 |
'#states' => array( |
|
224 |
'enabled' => array( |
|
225 |
':input[name="style_options[views_slideshow_cycle][play_on_hover]"]' => array('checked' => FALSE), |
|
226 |
), |
|
227 |
), |
|
228 |
); |
|
229 |
$form['views_slideshow_cycle']['play_on_hover'] = array( |
|
230 |
'#type' => 'checkbox', |
|
231 |
'#title' => t('Play on hover'), |
|
232 |
'#default_value' => $view->options['views_slideshow_cycle']['play_on_hover'], |
|
233 |
'#description' => t('Play when hovering on the slideshow image.'), |
|
234 |
'#states' => array( |
|
235 |
'enabled' => array( |
|
236 |
':input[name="style_options[views_slideshow_cycle][pause]"]' => array('checked' => FALSE), |
|
237 |
), |
|
238 |
), |
|
222 | 239 |
); |
223 | 240 |
$form['views_slideshow_cycle']['pause_on_click'] = array( |
224 | 241 |
'#type' => 'checkbox', |
... | ... | |
442 | 459 |
'after' => 'after', |
443 | 460 |
'allowPagerClickBubble' => 'allowPagerClickBubble', |
444 | 461 |
'animIn' => 'animIn', |
462 |
'animInDelay' => 'animInDelay', |
|
445 | 463 |
'animOut' => 'animOut', |
464 |
'animOutDelay' => 'animOutDelay', |
|
446 | 465 |
'autostop' => 'autostop', |
447 | 466 |
'autostopCount' => 'autostopCount', |
448 | 467 |
'backwards' => 'backwards', |
drupal7/sites/all/modules/views_slideshow/theme/views-slideshow-controls-text-next.tpl.php | ||
---|---|---|
6 | 6 |
* |
7 | 7 |
* - $variables: Contains theme variables. |
8 | 8 |
* - $classes: Text control classes. |
9 |
* - $vss_id: The Views Slideshow unique id. |
|
9 | 10 |
* |
10 | 11 |
* @ingroup views_templates |
11 | 12 |
*/ |
12 | 13 |
?> |
13 |
<span id="views_slideshow_controls_text_next_<?php print $variables['vss_id']; ?>" class="<?php print $classes; ?>"><a href="#"><?php print t('Next'); ?></a></span> |
|
14 |
<span id="views_slideshow_controls_text_next_<?php print $vss_id; ?>" class="<?php print $classes; ?>"> |
|
15 |
<a href="#" rel="next"><?php print t('Next'); ?></a> |
|
16 |
</span> |
drupal7/sites/all/modules/views_slideshow/theme/views-slideshow-controls-text-previous.tpl.php | ||
---|---|---|
6 | 6 |
* |
7 | 7 |
* - $variables: Contains theme variables. |
8 | 8 |
* - $classes: Text control classes. |
9 |
* - $vss_id: The Views Slideshow unique ID. |
|
9 | 10 |
* |
10 | 11 |
* @ingroup views_templates |
11 | 12 |
*/ |
12 | 13 |
?> |
13 |
<span id="views_slideshow_controls_text_previous_<?php print $variables['vss_id']; ?>" class="<?php print $classes; ?>"><a href="#"><?php print t('Previous'); ?></a></span> |
|
14 |
<span id="views_slideshow_controls_text_previous_<?php print $vss_id; ?>" class="<?php print $classes; ?>"> |
|
15 |
<a href="#" rel="prev"><?php print t('Previous'); ?></a> |
|
16 |
</span> |
drupal7/sites/all/modules/views_slideshow/theme/views-slideshow-pager-field-field.tpl.php | ||
---|---|---|
14 | 14 |
*/ |
15 | 15 |
?> |
16 | 16 |
<div class="views-field-<?php print $css_id; ?>"> |
17 |
<?php if ($field_item->label()) { ?> |
|
17 |
<?php if (is_object($field_item) && $field_item->label()) { ?>
|
|
18 | 18 |
<label class="view-label-<?php print $css_id; ?>"> |
19 | 19 |
<?php print $field_item->label(); ?>: |
20 | 20 |
</label> |
21 | 21 |
<?php } ?> |
22 |
<div class="views-content-<?php $css_id; ?>"> |
|
22 |
<div class="views-content-<?php print $css_id; ?>">
|
|
23 | 23 |
<?php print $field_rendered; ?> |
24 | 24 |
</div> |
25 | 25 |
</div> |
drupal7/sites/all/modules/views_slideshow/theme/views-slideshow-pager-field-item.tpl.php | ||
---|---|---|
13 | 13 |
* @ingroup views_templates |
14 | 14 |
*/ |
15 | 15 |
?> |
16 |
<div id="views_slideshow_pager_field_item_<?php print $variables['location']; ?>_<?php print $vss_id; ?>_<?php print $count; ?>" class="<?php print $classes; ?>"> |
|
16 |
<div id="views_slideshow_pager_field_item_<?php print $variables['location']; ?>_<?php print $vss_id; ?>_<?php print $count; ?>" class="<?php print $classes; ?>" aria-controls="views_slideshow_cycle_div_<?php print $variables['vss_id']; ?>_<?php print $variables['count']; ?>">
|
|
17 | 17 |
<?php print $item; ?> |
18 | 18 |
</div> |
drupal7/sites/all/modules/views_slideshow/theme/views_slideshow.theme.inc | ||
---|---|---|
167 | 167 |
'view' => $view, |
168 | 168 |
'settings' => $settings, |
169 | 169 |
'rows' => $rows, |
170 |
'options' => $options, |
|
170 | 171 |
)); |
171 | 172 |
$vars['slideshow'] = theme(views_theme_functions('views_slideshow_main_section', $view, $view->display[$view->current_display]), array( |
172 | 173 |
'vss_id' => $vss_id, |
... | ... | |
314 | 315 |
} |
315 | 316 |
} |
316 | 317 |
|
317 |
|
|
318 | 318 |
/** |
319 | 319 |
* Views Slideshow: Controls. |
320 | 320 |
* |
... | ... | |
430 | 430 |
$vars['classes_array'][] = 'views_slideshow_slide_counter'; |
431 | 431 |
$vars['slide_count'] = count($vars['rows']); |
432 | 432 |
} |
433 |
|
|
434 |
/** |
|
435 |
* Backwards compatability wrapper. |
|
436 |
* |
|
437 |
* @see template_preprocess_views_slideshow(). |
|
438 |
*/ |
|
439 |
function _views_slideshow_preprocess_views_slideshow(&$vars) { |
|
440 |
template_preprocess_views_slideshow($vars); |
|
441 |
} |
|
442 |
|
|
443 |
/** |
|
444 |
* Backwards compatability wrapper. |
|
445 |
* |
|
446 |
* @see template_preprocess_views_slideshow_pager_fields(). |
|
447 |
*/ |
|
448 |
function _views_slideshow_preprocess_views_slideshow_pager_fields(&$vars) { |
|
449 |
template_preprocess_views_slideshow_pager_fields($vars); |
|
450 |
} |
|
451 |
|
|
452 |
/** |
|
453 |
* Backwards compatability wrapper. |
|
454 |
* |
|
455 |
* @see template_preprocess_views_slideshow_pager_field_item(). |
|
456 |
*/ |
|
457 |
function _views_slideshow_preprocess_views_slideshow_pager_field_item(&$vars) { |
|
458 |
template_preprocess_views_slideshow_pager_field_item($vars); |
|
459 |
} |
|
460 |
|
|
461 |
/** |
|
462 |
* Backwards compatability wrapper. |
|
463 |
* |
|
464 |
* @see template_preprocess_views_slideshow_controls_text(). |
|
465 |
*/ |
|
466 |
function _views_slideshow_preprocess_views_slideshow_controls_text(&$vars) { |
|
467 |
template_preprocess_views_slideshow_controls_text($vars); |
|
468 |
} |
|
469 |
|
|
470 |
/** |
|
471 |
* Backwards compatability wrapper. |
|
472 |
* |
|
473 |
* @see template_preprocess_views_slideshow_controls_text_previous(). |
|
474 |
*/ |
|
475 |
function _views_slideshow_preprocess_views_slideshow_controls_text_previous(&$vars) { |
|
476 |
template_preprocess_views_slideshow_controls_text_previous($vars); |
|
477 |
} |
|
478 |
|
|
479 |
/** |
|
480 |
* Backwards compatability wrapper. |
|
481 |
* |
|
482 |
* @see template_preprocess_views_slideshow_controls_text_pause(). |
|
483 |
*/ |
|
484 |
function _views_slideshow_preprocess_views_slideshow_controls_text_pause(&$vars) { |
|
485 |
template_preprocess_views_slideshow_controls_text_pause($vars); |
|
486 |
} |
|
487 |
|
|
488 |
/** |
|
489 |
* Backwards compatability wrapper. |
|
490 |
* |
|
491 |
* @see template_preprocess_views_slideshow_controls_text_next(). |
|
492 |
*/ |
|
493 |
function _views_slideshow_preprocess_views_slideshow_controls_text_next(&$vars) { |
|
494 |
template_preprocess_views_slideshow_controls_text_next($vars); |
|
495 |
} |
|
496 |
|
|
497 |
/** |
|
498 |
* Backwards compatability wrapper. |
|
499 |
* |
|
500 |
* @see template_preprocess_views_slideshow_slide_counter(). |
|
501 |
*/ |
|
502 |
function _views_slideshow_preprocess_views_slideshow_slide_counter(&$vars) { |
|
503 |
template_preprocess_views_slideshow_slide_counter($vars); |
|
504 |
} |
drupal7/sites/all/modules/views_slideshow/views_slideshow.info | ||
---|---|---|
6 | 6 |
|
7 | 7 |
files[] = views_slideshow_plugin_style_slideshow.inc |
8 | 8 |
|
9 |
; Information added by Drupal.org packaging script on 2017-01-05
|
|
10 |
version = "7.x-3.4"
|
|
9 |
; Information added by Drupal.org packaging script on 2017-01-19
|
|
10 |
version = "7.x-3.5"
|
|
11 | 11 |
core = "7.x" |
12 | 12 |
project = "views_slideshow" |
13 |
datestamp = "1483641845"
|
|
13 |
datestamp = "1484857386"
|
|
14 | 14 |
|
drupal7/sites/all/modules/views_slideshow/views_slideshow.install | ||
---|---|---|
1 |
<?php |
|
2 |
|
|
3 |
/** |
|
4 |
* @file |
|
5 |
* Handles Views Slideshow installation and upgrade tasks. |
|
6 |
*/ |
|
7 |
|
|
8 |
/** |
|
9 |
* Ensure all caches are cleared. Primarily for 7.x-3.2 -> 7.x-3.4+. |
|
10 |
* |
|
11 |
* Implements hook_update_N(). |
|
12 |
*/ |
|
13 |
function views_slideshow_update_7300(&$sandbox) { |
|
14 |
drupal_flush_all_caches(); |
|
15 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules