Révision e33d3026
Ajouté par Julien Enselme il y a presque 10 ans
drupal7/CHANGELOG.txt | ||
---|---|---|
1 |
|
|
2 |
Drupal 7.30, 2014-07-24 |
|
3 |
----------------------- |
|
4 |
- Fixed a regression introduced in Drupal 7.29 that caused files or images |
|
5 |
attached to taxonomy terms to be deleted when the taxonomy term was edited |
|
6 |
and resaved (and other related bugs with contributed and custom modules). |
|
7 |
- Added a warning on the permissions page to recommend restricting access to |
|
8 |
the "View site reports" permission to trusted administrators. See |
|
9 |
DRUPAL-PSA-2014-002. |
|
10 |
- Numerous API documentation improvements. |
|
11 |
- Additional automated test coverage. |
|
12 |
|
|
1 | 13 |
Drupal 7.29, 2014-07-16 |
2 | 14 |
---------------------- |
3 | 15 |
- Fixed security issues (multiple vulnerabilities). See SA-CORE-2014-003. |
drupal7/MAINTAINERS.txt | ||
---|---|---|
139 | 139 |
Documentation |
140 | 140 |
- Jennifer Hodgdon 'jhodgdon' http://drupal.org/user/155601 |
141 | 141 |
|
142 |
Security |
|
143 |
- Greg Knaddison 'greggles' http://drupal.org/user/36762 |
|
144 |
|
|
145 | 142 |
Translations |
146 | 143 |
- Gerhard Killesreiter 'killes' http://drupal.org/user/83 |
147 | 144 |
|
... | ... | |
154 | 151 |
- Ken Rickard 'agentrickard' http://drupal.org/user/20975 |
155 | 152 |
- Jess Myrbo 'xjm' http://drupal.org/user/65776 |
156 | 153 |
|
154 |
|
|
155 |
Security team |
|
156 |
----------------- |
|
157 |
|
|
158 |
To report a security issue, see: https://drupal.org/security-team/report-issue |
|
159 |
|
|
160 |
The Drupal security team provides Security Advisories for vulnerabilities, |
|
161 |
assists developers in resolving security issues, and provides security |
|
162 |
documentation. See http://drupal.org/security-team for more information. The |
|
163 |
security team lead is: |
|
164 |
|
|
165 |
- Michael Hess 'mlhess' https://drupal.org/user/102818 |
|
166 |
|
|
167 |
|
|
157 | 168 |
Module maintainers |
158 | 169 |
------------------ |
159 | 170 |
|
drupal7/includes/bootstrap.inc | ||
---|---|---|
8 | 8 |
/** |
9 | 9 |
* The current system version. |
10 | 10 |
*/ |
11 |
define('VERSION', '7.29');
|
|
11 |
define('VERSION', '7.30');
|
|
12 | 12 |
|
13 | 13 |
/** |
14 | 14 |
* Core API compatibility. |
drupal7/includes/common.inc | ||
---|---|---|
544 | 544 |
} |
545 | 545 |
|
546 | 546 |
/** |
547 |
* Parses a system URL string into an associative array suitable for url().
|
|
547 |
* Parses a URL string into its path, query, and fragment components.
|
|
548 | 548 |
* |
549 |
* This function should only be used for URLs that have been generated by the |
|
550 |
* system, such as via url(). It should not be used for URLs that come from |
|
551 |
* external sources, or URLs that link to external resources. |
|
549 |
* This function splits both internal paths like @code node?b=c#d @endcode and |
|
550 |
* external URLs like @code https://example.com/a?b=c#d @endcode into their |
|
551 |
* component parts. See |
|
552 |
* @link http://tools.ietf.org/html/rfc3986#section-3 RFC 3986 @endlink for an |
|
553 |
* explanation of what the component parts are. |
|
552 | 554 |
* |
553 |
* The returned array contains a 'path' that may be passed separately to url(). |
|
554 |
* For example: |
|
555 |
* @code |
|
556 |
* $options = drupal_parse_url($_GET['destination']); |
|
557 |
* $my_url = url($options['path'], $options); |
|
558 |
* $my_link = l('Example link', $options['path'], $options); |
|
559 |
* @endcode |
|
555 |
* Note that, unlike the RFC, when passed an external URL, this function |
|
556 |
* groups the scheme, authority, and path together into the path component. |
|
560 | 557 |
* |
561 |
* This is required, because url() does not support relative URLs containing a |
|
562 |
* query string or fragment in its $path argument. Instead, any query string |
|
563 |
* needs to be parsed into an associative query parameter array in |
|
564 |
* $options['query'] and the fragment into $options['fragment']. |
|
565 |
* |
|
566 |
* @param $url |
|
567 |
* The URL string to parse, f.e. $_GET['destination']. |
|
558 |
* @param string $url |
|
559 |
* The internal path or external URL string to parse. |
|
568 | 560 |
* |
569 |
* @return |
|
570 |
* An associative array containing the keys:
|
|
571 |
* - 'path': The path of the URL. If the given $url is external, this includes
|
|
572 |
* the scheme and host.
|
|
573 |
* - 'query': An array of query parameters of $url, if existent.
|
|
574 |
* - 'fragment': The fragment of $url, if existent.
|
|
561 |
* @return array
|
|
562 |
* An associative array containing: |
|
563 |
* - path: The path component of $url. If $url is an external URL, this
|
|
564 |
* includes the scheme, authority, and path.
|
|
565 |
* - query: An array of query parameters from $url, if they exist.
|
|
566 |
* - fragment: The fragment component from $url, if it exists.
|
|
575 | 567 |
* |
576 |
* @see url() |
|
577 | 568 |
* @see drupal_goto() |
569 |
* @see l() |
|
570 |
* @see url() |
|
571 |
* @see http://tools.ietf.org/html/rfc3986 |
|
572 |
* |
|
578 | 573 |
* @ingroup php_wrappers |
579 | 574 |
*/ |
580 | 575 |
function drupal_parse_url($url) { |
drupal7/includes/database/database.inc | ||
---|---|---|
2832 | 2832 |
* will be set to the value of the key in all rows. This is most useful for |
2833 | 2833 |
* creating NOT NULL columns with no default value in existing tables. |
2834 | 2834 |
* @param $keys_new |
2835 |
* Optional keys and indexes specification to be created on the table along
|
|
2835 |
* (optional) Keys and indexes specification to be created on the table along
|
|
2836 | 2836 |
* with adding the field. The format is the same as a table specification, but |
2837 | 2837 |
* without the 'fields' element. If you are adding a type 'serial' field, you |
2838 | 2838 |
* MUST specify at least one key or index including it in this array. See |
... | ... | |
3012 | 3012 |
* @param $spec |
3013 | 3013 |
* The field specification for the new field. |
3014 | 3014 |
* @param $keys_new |
3015 |
* Optional keys and indexes specification to be created on the table along
|
|
3015 |
* (optional) Keys and indexes specification to be created on the table along
|
|
3016 | 3016 |
* with changing the field. The format is the same as a table specification |
3017 | 3017 |
* but without the 'fields' element. |
3018 | 3018 |
*/ |
drupal7/includes/database/schema.inc | ||
---|---|---|
416 | 416 |
* This is most useful for creating NOT NULL columns with no default |
417 | 417 |
* value in existing tables. |
418 | 418 |
* @param $keys_new |
419 |
* Optional keys and indexes specification to be created on the
|
|
419 |
* (optional) Keys and indexes specification to be created on the
|
|
420 | 420 |
* table along with adding the field. The format is the same as a |
421 | 421 |
* table specification but without the 'fields' element. If you are |
422 | 422 |
* adding a type 'serial' field, you MUST specify at least one key |
... | ... | |
630 | 630 |
* @param $spec |
631 | 631 |
* The field specification for the new field. |
632 | 632 |
* @param $keys_new |
633 |
* Optional keys and indexes specification to be created on the
|
|
633 |
* (optional) Keys and indexes specification to be created on the
|
|
634 | 634 |
* table along with changing the field. The format is the same as a |
635 | 635 |
* table specification but without the 'fields' element. |
636 | 636 |
* |
drupal7/includes/entity.inc | ||
---|---|---|
46 | 46 |
class DrupalDefaultEntityController implements DrupalEntityControllerInterface { |
47 | 47 |
|
48 | 48 |
/** |
49 |
* Static cache of entities. |
|
49 |
* Static cache of entities, keyed by entity ID.
|
|
50 | 50 |
* |
51 | 51 |
* @var array |
52 | 52 |
*/ |
drupal7/includes/xmlrpcs.inc | ||
---|---|---|
9 | 9 |
* Invokes XML-RPC methods on this server. |
10 | 10 |
* |
11 | 11 |
* @param array $callbacks |
12 |
* Array of external XML-RPC method names with the callbacks they map to. |
|
12 |
* Either an associative array of external XML-RPC method names as keys with |
|
13 |
* the callbacks they map to as values, or a more complex structure |
|
14 |
* describing XML-RPC callbacks as returned from hook_xmlrpc(). |
|
13 | 15 |
*/ |
14 | 16 |
function xmlrpc_server($callbacks) { |
15 | 17 |
$xmlrpc_server = new stdClass(); |
drupal7/modules/aggregator/aggregator.info | ||
---|---|---|
7 | 7 |
configure = admin/config/services/aggregator/settings |
8 | 8 |
stylesheets[all][] = aggregator.css |
9 | 9 |
|
10 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
11 |
version = "7.29"
|
|
10 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
11 |
version = "7.30"
|
|
12 | 12 |
project = "drupal" |
13 |
datestamp = "1405543132"
|
|
13 |
datestamp = "1406239730"
|
|
14 | 14 |
|
drupal7/modules/aggregator/tests/aggregator_test.info | ||
---|---|---|
5 | 5 |
core = 7.x |
6 | 6 |
hidden = TRUE |
7 | 7 |
|
8 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
9 |
version = "7.29"
|
|
8 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
9 |
version = "7.30"
|
|
10 | 10 |
project = "drupal" |
11 |
datestamp = "1405543132"
|
|
11 |
datestamp = "1406239730"
|
|
12 | 12 |
|
drupal7/modules/block/block.info | ||
---|---|---|
6 | 6 |
files[] = block.test |
7 | 7 |
configure = admin/structure/block |
8 | 8 |
|
9 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
10 |
version = "7.29"
|
|
9 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
10 |
version = "7.30"
|
|
11 | 11 |
project = "drupal" |
12 |
datestamp = "1405543132"
|
|
12 |
datestamp = "1406239730"
|
|
13 | 13 |
|
drupal7/modules/block/tests/block_test.info | ||
---|---|---|
5 | 5 |
core = 7.x |
6 | 6 |
hidden = TRUE |
7 | 7 |
|
8 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
9 |
version = "7.29"
|
|
8 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
9 |
version = "7.30"
|
|
10 | 10 |
project = "drupal" |
11 |
datestamp = "1405543132"
|
|
11 |
datestamp = "1406239730"
|
|
12 | 12 |
|
drupal7/modules/block/tests/themes/block_test_theme/block_test_theme.info | ||
---|---|---|
13 | 13 |
regions[highlighted] = Highlighted |
14 | 14 |
regions[help] = Help |
15 | 15 |
|
16 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
17 |
version = "7.29"
|
|
16 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
17 |
version = "7.30"
|
|
18 | 18 |
project = "drupal" |
19 |
datestamp = "1405543132"
|
|
19 |
datestamp = "1406239730"
|
|
20 | 20 |
|
drupal7/modules/blog/blog.info | ||
---|---|---|
5 | 5 |
core = 7.x |
6 | 6 |
files[] = blog.test |
7 | 7 |
|
8 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
9 |
version = "7.29"
|
|
8 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
9 |
version = "7.30"
|
|
10 | 10 |
project = "drupal" |
11 |
datestamp = "1405543132"
|
|
11 |
datestamp = "1406239730"
|
|
12 | 12 |
|
drupal7/modules/book/book.info | ||
---|---|---|
7 | 7 |
configure = admin/content/book/settings |
8 | 8 |
stylesheets[all][] = book.css |
9 | 9 |
|
10 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
11 |
version = "7.29"
|
|
10 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
11 |
version = "7.30"
|
|
12 | 12 |
project = "drupal" |
13 |
datestamp = "1405543132"
|
|
13 |
datestamp = "1406239730"
|
|
14 | 14 |
|
drupal7/modules/color/color.info | ||
---|---|---|
5 | 5 |
core = 7.x |
6 | 6 |
files[] = color.test |
7 | 7 |
|
8 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
9 |
version = "7.29"
|
|
8 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
9 |
version = "7.30"
|
|
10 | 10 |
project = "drupal" |
11 |
datestamp = "1405543132"
|
|
11 |
datestamp = "1406239730"
|
|
12 | 12 |
|
drupal7/modules/comment/comment.info | ||
---|---|---|
9 | 9 |
configure = admin/content/comment |
10 | 10 |
stylesheets[all][] = comment.css |
11 | 11 |
|
12 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
13 |
version = "7.29"
|
|
12 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
13 |
version = "7.30"
|
|
14 | 14 |
project = "drupal" |
15 |
datestamp = "1405543132"
|
|
15 |
datestamp = "1406239730"
|
|
16 | 16 |
|
drupal7/modules/contact/contact.info | ||
---|---|---|
6 | 6 |
files[] = contact.test |
7 | 7 |
configure = admin/structure/contact |
8 | 8 |
|
9 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
10 |
version = "7.29"
|
|
9 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
10 |
version = "7.30"
|
|
11 | 11 |
project = "drupal" |
12 |
datestamp = "1405543132"
|
|
12 |
datestamp = "1406239730"
|
|
13 | 13 |
|
drupal7/modules/contextual/contextual.info | ||
---|---|---|
5 | 5 |
core = 7.x |
6 | 6 |
files[] = contextual.test |
7 | 7 |
|
8 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
9 |
version = "7.29"
|
|
8 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
9 |
version = "7.30"
|
|
10 | 10 |
project = "drupal" |
11 |
datestamp = "1405543132"
|
|
11 |
datestamp = "1406239730"
|
|
12 | 12 |
|
drupal7/modules/dashboard/dashboard.info | ||
---|---|---|
7 | 7 |
dependencies[] = block |
8 | 8 |
configure = admin/dashboard/customize |
9 | 9 |
|
10 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
11 |
version = "7.29"
|
|
10 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
11 |
version = "7.30"
|
|
12 | 12 |
project = "drupal" |
13 |
datestamp = "1405543132"
|
|
13 |
datestamp = "1406239730"
|
|
14 | 14 |
|
drupal7/modules/dblog/dblog.info | ||
---|---|---|
5 | 5 |
core = 7.x |
6 | 6 |
files[] = dblog.test |
7 | 7 |
|
8 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
9 |
version = "7.29"
|
|
8 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
9 |
version = "7.30"
|
|
10 | 10 |
project = "drupal" |
11 |
datestamp = "1405543132"
|
|
11 |
datestamp = "1406239730"
|
|
12 | 12 |
|
drupal7/modules/field/field.crud.inc | ||
---|---|---|
540 | 540 |
* // Fetch an instance info array. |
541 | 541 |
* $instance_info = field_info_instance($entity_type, $field_name, $bundle_name); |
542 | 542 |
* // Change a single property in the instance definition. |
543 |
* $instance_info['definition']['required'] = TRUE;
|
|
543 |
* $instance_info['required'] = TRUE; |
|
544 | 544 |
* // Write the changed definition back. |
545 |
* field_update_instance($instance_info['definition']);
|
|
545 |
* field_update_instance($instance_info); |
|
546 | 546 |
* @endcode |
547 | 547 |
* |
548 | 548 |
* @throws FieldException |
drupal7/modules/field/field.info | ||
---|---|---|
11 | 11 |
required = TRUE |
12 | 12 |
stylesheets[all][] = theme/field.css |
13 | 13 |
|
14 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
15 |
version = "7.29"
|
|
14 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
15 |
version = "7.30"
|
|
16 | 16 |
project = "drupal" |
17 |
datestamp = "1405543132"
|
|
17 |
datestamp = "1406239730"
|
|
18 | 18 |
|
drupal7/modules/field/field.module | ||
---|---|---|
961 | 961 |
/** |
962 | 962 |
* Determine whether the user has access to a given field. |
963 | 963 |
* |
964 |
* This function does not determine whether access is granted to the entity |
|
965 |
* itself, only the specific field. Callers are responsible for ensuring that |
|
966 |
* entity access is also respected. For example, when checking field access for |
|
967 |
* nodes, check node_access() before checking field_access(), and when checking |
|
968 |
* field access for entities using the Entity API contributed module, |
|
969 |
* check entity_access() before checking field_access(). |
|
970 |
* |
|
964 | 971 |
* @param $op |
965 | 972 |
* The operation to be performed. Possible values: |
966 | 973 |
* - 'edit' |
drupal7/modules/field/modules/field_sql_storage/field_sql_storage.info | ||
---|---|---|
7 | 7 |
files[] = field_sql_storage.test |
8 | 8 |
required = TRUE |
9 | 9 |
|
10 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
11 |
version = "7.29"
|
|
10 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
11 |
version = "7.30"
|
|
12 | 12 |
project = "drupal" |
13 |
datestamp = "1405543132"
|
|
13 |
datestamp = "1406239730"
|
|
14 | 14 |
|
drupal7/modules/field/modules/list/list.info | ||
---|---|---|
7 | 7 |
dependencies[] = options |
8 | 8 |
files[] = tests/list.test |
9 | 9 |
|
10 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
11 |
version = "7.29"
|
|
10 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
11 |
version = "7.30"
|
|
12 | 12 |
project = "drupal" |
13 |
datestamp = "1405543132"
|
|
13 |
datestamp = "1406239730"
|
|
14 | 14 |
|
drupal7/modules/field/modules/list/tests/list_test.info | ||
---|---|---|
5 | 5 |
version = VERSION |
6 | 6 |
hidden = TRUE |
7 | 7 |
|
8 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
9 |
version = "7.29"
|
|
8 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
9 |
version = "7.30"
|
|
10 | 10 |
project = "drupal" |
11 |
datestamp = "1405543132"
|
|
11 |
datestamp = "1406239730"
|
|
12 | 12 |
|
drupal7/modules/field/modules/number/number.info | ||
---|---|---|
6 | 6 |
dependencies[] = field |
7 | 7 |
files[] = number.test |
8 | 8 |
|
9 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
10 |
version = "7.29"
|
|
9 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
10 |
version = "7.30"
|
|
11 | 11 |
project = "drupal" |
12 |
datestamp = "1405543132"
|
|
12 |
datestamp = "1406239730"
|
|
13 | 13 |
|
drupal7/modules/field/modules/options/options.info | ||
---|---|---|
6 | 6 |
dependencies[] = field |
7 | 7 |
files[] = options.test |
8 | 8 |
|
9 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
10 |
version = "7.29"
|
|
9 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
10 |
version = "7.30"
|
|
11 | 11 |
project = "drupal" |
12 |
datestamp = "1405543132"
|
|
12 |
datestamp = "1406239730"
|
|
13 | 13 |
|
drupal7/modules/field/modules/text/text.info | ||
---|---|---|
7 | 7 |
files[] = text.test |
8 | 8 |
required = TRUE |
9 | 9 |
|
10 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
11 |
version = "7.29"
|
|
10 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
11 |
version = "7.30"
|
|
12 | 12 |
project = "drupal" |
13 |
datestamp = "1405543132"
|
|
13 |
datestamp = "1406239730"
|
|
14 | 14 |
|
drupal7/modules/field/tests/field_test.info | ||
---|---|---|
6 | 6 |
version = VERSION |
7 | 7 |
hidden = TRUE |
8 | 8 |
|
9 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
10 |
version = "7.29"
|
|
9 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
10 |
version = "7.30"
|
|
11 | 11 |
project = "drupal" |
12 |
datestamp = "1405543132"
|
|
12 |
datestamp = "1406239730"
|
|
13 | 13 |
|
drupal7/modules/field_ui/field_ui.api.php | ||
---|---|---|
134 | 134 |
/** |
135 | 135 |
* Specify the form elements for a formatter's settings. |
136 | 136 |
* |
137 |
* This hook is only invoked if hook_field_formatter_settings_summary() |
|
138 |
* returns a non-empty value. |
|
139 |
* |
|
137 | 140 |
* @param $field |
138 | 141 |
* The field structure being configured. |
139 | 142 |
* @param $instance |
drupal7/modules/field_ui/field_ui.info | ||
---|---|---|
6 | 6 |
dependencies[] = field |
7 | 7 |
files[] = field_ui.test |
8 | 8 |
|
9 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
10 |
version = "7.29"
|
|
9 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
10 |
version = "7.30"
|
|
11 | 11 |
project = "drupal" |
12 |
datestamp = "1405543132"
|
|
12 |
datestamp = "1406239730"
|
|
13 | 13 |
|
drupal7/modules/file/file.info | ||
---|---|---|
6 | 6 |
dependencies[] = field |
7 | 7 |
files[] = tests/file.test |
8 | 8 |
|
9 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
10 |
version = "7.29"
|
|
9 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
10 |
version = "7.30"
|
|
11 | 11 |
project = "drupal" |
12 |
datestamp = "1405543132"
|
|
12 |
datestamp = "1406239730"
|
|
13 | 13 |
|
drupal7/modules/file/file.module | ||
---|---|---|
478 | 478 |
*/ |
479 | 479 |
function file_managed_file_value(&$element, $input = FALSE, $form_state = NULL) { |
480 | 480 |
$fid = 0; |
481 |
$force_default = FALSE; |
|
481 | 482 |
|
482 | 483 |
// Find the current value of this field from the form state. |
483 | 484 |
$form_state_fid = $form_state['values']; |
... | ... | |
510 | 511 |
$callback($element, $input, $form_state); |
511 | 512 |
} |
512 | 513 |
} |
513 |
// Load file and check access if the FID has changed, to confirm it |
|
514 |
// exists and that the current user has access to it. |
|
515 |
if (isset($input['fid']) && ($file = file_load($input['fid'])) && file_download_access($file->uri)) { |
|
516 |
$fid = $file->fid; |
|
514 |
// If a FID was submitted, load the file (and check access if it's not a |
|
515 |
// public file) to confirm it exists and that the current user has access |
|
516 |
// to it. |
|
517 |
if (isset($input['fid']) && ($file = file_load($input['fid']))) { |
|
518 |
if (file_uri_scheme($file->uri) == 'public' || file_download_access($file->uri)) { |
|
519 |
$fid = $file->fid; |
|
520 |
} |
|
521 |
// If the current user doesn't have access, don't let the file be |
|
522 |
// changed. |
|
523 |
else { |
|
524 |
$force_default = TRUE; |
|
525 |
} |
|
517 | 526 |
} |
518 | 527 |
} |
519 | 528 |
} |
520 | 529 |
|
521 |
// If there is no input, set the default value. |
|
522 |
else { |
|
530 |
// If there is no input or if the default value was requested above, use the |
|
531 |
// default value. |
|
532 |
if ($input === FALSE || $force_default) { |
|
523 | 533 |
if ($element['#extended']) { |
524 | 534 |
$default_fid = isset($element['#default_value']['fid']) ? $element['#default_value']['fid'] : 0; |
525 | 535 |
$return = isset($element['#default_value']) ? $element['#default_value'] : array('fid' => 0); |
drupal7/modules/file/tests/file.test | ||
---|---|---|
220 | 220 |
} |
221 | 221 |
} |
222 | 222 |
|
223 |
/** |
|
224 |
* Tests adding a file to a non-node entity. |
|
225 |
*/ |
|
226 |
class FileTaxonomyTermTestCase extends DrupalWebTestCase { |
|
227 |
protected $admin_user; |
|
228 |
|
|
229 |
public static function getInfo() { |
|
230 |
return array( |
|
231 |
'name' => 'Taxonomy term file test', |
|
232 |
'description' => 'Tests adding a file to a non-node entity.', |
|
233 |
'group' => 'File', |
|
234 |
); |
|
235 |
} |
|
236 |
|
|
237 |
public function setUp() { |
|
238 |
$modules[] = 'file'; |
|
239 |
$modules[] = 'taxonomy'; |
|
240 |
parent::setUp($modules); |
|
241 |
$this->admin_user = $this->drupalCreateUser(array('access content', 'access administration pages', 'administer site configuration', 'administer taxonomy')); |
|
242 |
$this->drupalLogin($this->admin_user); |
|
243 |
} |
|
244 |
|
|
245 |
/** |
|
246 |
* Creates a file field and attaches it to the "Tags" taxonomy vocabulary. |
|
247 |
* |
|
248 |
* @param $name |
|
249 |
* The field name of the file field to create. |
|
250 |
* @param $uri_scheme |
|
251 |
* The URI scheme to use for the file field (for example, "private" to |
|
252 |
* create a field that stores private files or "public" to create a field |
|
253 |
* that stores public files). |
|
254 |
*/ |
|
255 |
protected function createAttachFileField($name, $uri_scheme) { |
|
256 |
$field = array( |
|
257 |
'field_name' => $name, |
|
258 |
'type' => 'file', |
|
259 |
'settings' => array( |
|
260 |
'uri_scheme' => $uri_scheme, |
|
261 |
), |
|
262 |
'cardinality' => 1, |
|
263 |
); |
|
264 |
field_create_field($field); |
|
265 |
// Attach an instance of it. |
|
266 |
$instance = array( |
|
267 |
'field_name' => $name, |
|
268 |
'label' => 'File', |
|
269 |
'entity_type' => 'taxonomy_term', |
|
270 |
'bundle' => 'tags', |
|
271 |
'required' => FALSE, |
|
272 |
'settings' => array(), |
|
273 |
'widget' => array( |
|
274 |
'type' => 'file_generic', |
|
275 |
'settings' => array(), |
|
276 |
), |
|
277 |
); |
|
278 |
field_create_instance($instance); |
|
279 |
} |
|
280 |
|
|
281 |
/** |
|
282 |
* Tests that a public file can be attached to a taxonomy term. |
|
283 |
* |
|
284 |
* This is a regression test for https://www.drupal.org/node/2305017. |
|
285 |
*/ |
|
286 |
public function testTermFilePublic() { |
|
287 |
$this->_testTermFile('public'); |
|
288 |
} |
|
289 |
|
|
290 |
/** |
|
291 |
* Tests that a private file can be attached to a taxonomy term. |
|
292 |
* |
|
293 |
* This is a regression test for https://www.drupal.org/node/2305017. |
|
294 |
*/ |
|
295 |
public function testTermFilePrivate() { |
|
296 |
$this->_testTermFile('private'); |
|
297 |
} |
|
298 |
|
|
299 |
/** |
|
300 |
* Runs tests for attaching a file field to a taxonomy term. |
|
301 |
* |
|
302 |
* @param $uri_scheme |
|
303 |
* The URI scheme to use for the file field, either "public" or "private". |
|
304 |
*/ |
|
305 |
protected function _testTermFile($uri_scheme) { |
|
306 |
$field_name = strtolower($this->randomName()); |
|
307 |
$this->createAttachFileField($field_name, $uri_scheme); |
|
308 |
// Get a file to upload. |
|
309 |
$file = current($this->drupalGetTestFiles('text')); |
|
310 |
// Add a filesize property to files as would be read by file_load(). |
|
311 |
$file->filesize = filesize($file->uri); |
|
312 |
$langcode = LANGUAGE_NONE; |
|
313 |
$edit = array( |
|
314 |
"name" => $this->randomName(), |
|
315 |
); |
|
316 |
// Attach a file to the term. |
|
317 |
$edit['files[' . $field_name . '_' . $langcode . '_0]'] = drupal_realpath($file->uri); |
|
318 |
$this->drupalPost("admin/structure/taxonomy/tags/add", $edit, t('Save')); |
|
319 |
// Find the term ID we just created. |
|
320 |
$tid = db_query_range('SELECT tid FROM {taxonomy_term_data} ORDER BY tid DESC', 0, 1)->fetchField(); |
|
321 |
$terms = entity_load('taxonomy_term', array($tid)); |
|
322 |
$term = $terms[$tid]; |
|
323 |
$fid = $term->{$field_name}[LANGUAGE_NONE][0]['fid']; |
|
324 |
// Check that the uploaded file is present on the edit form. |
|
325 |
$this->drupalGet("taxonomy/term/$tid/edit"); |
|
326 |
$file_input_name = $field_name . '[' . LANGUAGE_NONE . '][0][fid]'; |
|
327 |
$this->assertFieldByXpath('//input[@type="hidden" and @name="' . $file_input_name . '"]', $fid, 'File is attached on edit form.'); |
|
328 |
// Edit the term and change name without changing the file. |
|
329 |
$edit = array( |
|
330 |
"name" => $this->randomName(), |
|
331 |
); |
|
332 |
$this->drupalPost("taxonomy/term/$tid/edit", $edit, t('Save')); |
|
333 |
// Check that the uploaded file is still present on the edit form. |
|
334 |
$this->drupalGet("taxonomy/term/$tid/edit"); |
|
335 |
$file_input_name = $field_name . '[' . LANGUAGE_NONE . '][0][fid]'; |
|
336 |
$this->assertFieldByXpath('//input[@type="hidden" and @name="' . $file_input_name . '"]', $fid, 'File is attached on edit form.'); |
|
337 |
// Load term while resetting the cache. |
|
338 |
$terms = entity_load('taxonomy_term', array($tid), array(), TRUE); |
|
339 |
$term = $terms[$tid]; |
|
340 |
$this->assertTrue(!empty($term->{$field_name}[LANGUAGE_NONE]), 'Term has attached files.'); |
|
341 |
$this->assertEqual($term->{$field_name}[LANGUAGE_NONE][0]['fid'], $fid, 'Same File ID is attached to the term.'); |
|
342 |
} |
|
343 |
} |
|
344 |
|
|
223 | 345 |
/** |
224 | 346 |
* Tests the 'managed_file' element type. |
225 | 347 |
* |
drupal7/modules/file/tests/file_module_test.info | ||
---|---|---|
5 | 5 |
core = 7.x |
6 | 6 |
hidden = TRUE |
7 | 7 |
|
8 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
9 |
version = "7.29"
|
|
8 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
9 |
version = "7.30"
|
|
10 | 10 |
project = "drupal" |
11 |
datestamp = "1405543132"
|
|
11 |
datestamp = "1406239730"
|
|
12 | 12 |
|
drupal7/modules/filter/filter.info | ||
---|---|---|
7 | 7 |
required = TRUE |
8 | 8 |
configure = admin/config/content/formats |
9 | 9 |
|
10 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
11 |
version = "7.29"
|
|
10 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
11 |
version = "7.30"
|
|
12 | 12 |
project = "drupal" |
13 |
datestamp = "1405543132"
|
|
13 |
datestamp = "1406239730"
|
|
14 | 14 |
|
drupal7/modules/forum/forum.info | ||
---|---|---|
9 | 9 |
configure = admin/structure/forum |
10 | 10 |
stylesheets[all][] = forum.css |
11 | 11 |
|
12 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
13 |
version = "7.29"
|
|
12 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
13 |
version = "7.30"
|
|
14 | 14 |
project = "drupal" |
15 |
datestamp = "1405543132"
|
|
15 |
datestamp = "1406239730"
|
|
16 | 16 |
|
drupal7/modules/help/help.api.php | ||
---|---|---|
1 |
<?php |
|
2 |
|
|
3 |
/** |
|
4 |
* @file |
|
5 |
* Hooks provided by the Help module. |
|
6 |
*/ |
|
7 |
|
|
8 |
/** |
|
9 |
* @addtogroup hooks |
|
10 |
* @{ |
|
11 |
*/ |
|
12 |
|
|
13 |
/** |
|
14 |
* Provide online user help. |
|
15 |
* |
|
16 |
* By implementing hook_help(), a module can make documentation available to |
|
17 |
* the user for the module as a whole, or for specific paths. Help for |
|
18 |
* developers should usually be provided via function header comments in the |
|
19 |
* code, or in special API example files. |
|
20 |
* |
|
21 |
* For a detailed usage example, see page_example.module. |
|
22 |
* |
|
23 |
* @param $path |
|
24 |
* The router menu path, as defined in hook_menu(), for the help that is |
|
25 |
* being requested; e.g., 'admin/people' or 'user/register'. If the router |
|
26 |
* path includes a wildcard, then this will appear in $path as %, even if it |
|
27 |
* is a named %autoloader wildcard in the hook_menu() implementation; for |
|
28 |
* example, node pages would have $path equal to 'node/%' or 'node/%/view'. |
|
29 |
* To provide a help page for a whole module with a listing on admin/help, |
|
30 |
* your hook implementation should match a path with a special descriptor |
|
31 |
* after a "#" sign: |
|
32 |
* 'admin/help#modulename' |
|
33 |
* The main module help text, displayed on the admin/help/modulename |
|
34 |
* page and linked to from the admin/help page. |
|
35 |
* @param $arg |
|
36 |
* An array that corresponds to the return value of the arg() function, for |
|
37 |
* modules that want to provide help that is specific to certain values |
|
38 |
* of wildcards in $path. For example, you could provide help for the path |
|
39 |
* 'user/1' by looking for the path 'user/%' and $arg[1] == '1'. This given |
|
40 |
* array should always be used rather than directly invoking arg(), because |
|
41 |
* your hook implementation may be called for other purposes besides building |
|
42 |
* the current page's help. Note that depending on which module is invoking |
|
43 |
* hook_help, $arg may contain only empty strings. Regardless, $arg[0] to |
|
44 |
* $arg[11] will always be set. |
|
45 |
* |
|
46 |
* @return |
|
47 |
* A localized string containing the help text. |
|
48 |
*/ |
|
49 |
function hook_help($path, $arg) { |
|
50 |
switch ($path) { |
|
51 |
// Main module help for the block module |
|
52 |
case 'admin/help#block': |
|
53 |
return '<p>' . t('Blocks are boxes of content rendered into an area, or region, of a web page. The default theme Bartik, for example, implements the regions "Sidebar first", "Sidebar second", "Featured", "Content", "Header", "Footer", etc., and a block may appear in any one of these areas. The <a href="@blocks">blocks administration page</a> provides a drag-and-drop interface for assigning a block to a region, and for controlling the order of blocks within regions.', array('@blocks' => url('admin/structure/block'))) . '</p>'; |
|
54 |
|
|
55 |
// Help for another path in the block module |
|
56 |
case 'admin/structure/block': |
|
57 |
return '<p>' . t('This page provides a drag-and-drop interface for assigning a block to a region, and for controlling the order of blocks within regions. Since not all themes implement the same regions, or display regions in the same way, blocks are positioned on a per-theme basis. Remember that your changes will not be saved until you click the <em>Save blocks</em> button at the bottom of the page.') . '</p>'; |
|
58 |
} |
|
59 |
} |
|
60 |
|
|
61 |
/** |
|
62 |
* @} End of "addtogroup hooks". |
|
63 |
*/ |
drupal7/modules/help/help.info | ||
---|---|---|
5 | 5 |
core = 7.x |
6 | 6 |
files[] = help.test |
7 | 7 |
|
8 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
9 |
version = "7.29"
|
|
8 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
9 |
version = "7.30"
|
|
10 | 10 |
project = "drupal" |
11 |
datestamp = "1405543132"
|
|
11 |
datestamp = "1406239730"
|
|
12 | 12 |
|
drupal7/modules/image/image.info | ||
---|---|---|
7 | 7 |
files[] = image.test |
8 | 8 |
configure = admin/config/media/image-styles |
9 | 9 |
|
10 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
11 |
version = "7.29"
|
|
10 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
11 |
version = "7.30"
|
|
12 | 12 |
project = "drupal" |
13 |
datestamp = "1405543132"
|
|
13 |
datestamp = "1406239730"
|
|
14 | 14 |
|
drupal7/modules/image/tests/image_module_test.info | ||
---|---|---|
6 | 6 |
files[] = image_module_test.module |
7 | 7 |
hidden = TRUE |
8 | 8 |
|
9 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
10 |
version = "7.29"
|
|
9 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
10 |
version = "7.30"
|
|
11 | 11 |
project = "drupal" |
12 |
datestamp = "1405543132"
|
|
12 |
datestamp = "1406239730"
|
|
13 | 13 |
|
drupal7/modules/locale/locale.info | ||
---|---|---|
6 | 6 |
files[] = locale.test |
7 | 7 |
configure = admin/config/regional/language |
8 | 8 |
|
9 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
10 |
version = "7.29"
|
|
9 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
10 |
version = "7.30"
|
|
11 | 11 |
project = "drupal" |
12 |
datestamp = "1405543132"
|
|
12 |
datestamp = "1406239730"
|
|
13 | 13 |
|
drupal7/modules/locale/tests/locale_test.info | ||
---|---|---|
5 | 5 |
version = VERSION |
6 | 6 |
hidden = TRUE |
7 | 7 |
|
8 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
9 |
version = "7.29"
|
|
8 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
9 |
version = "7.30"
|
|
10 | 10 |
project = "drupal" |
11 |
datestamp = "1405543132"
|
|
11 |
datestamp = "1406239730"
|
|
12 | 12 |
|
drupal7/modules/menu/menu.info | ||
---|---|---|
6 | 6 |
files[] = menu.test |
7 | 7 |
configure = admin/structure/menu |
8 | 8 |
|
9 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
10 |
version = "7.29"
|
|
9 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
10 |
version = "7.30"
|
|
11 | 11 |
project = "drupal" |
12 |
datestamp = "1405543132"
|
|
12 |
datestamp = "1406239730"
|
|
13 | 13 |
|
drupal7/modules/node/node.info | ||
---|---|---|
9 | 9 |
configure = admin/structure/types |
10 | 10 |
stylesheets[all][] = node.css |
11 | 11 |
|
12 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
13 |
version = "7.29"
|
|
12 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
13 |
version = "7.30"
|
|
14 | 14 |
project = "drupal" |
15 |
datestamp = "1405543132"
|
|
15 |
datestamp = "1406239730"
|
|
16 | 16 |
|
drupal7/modules/node/tests/node_access_test.info | ||
---|---|---|
5 | 5 |
core = 7.x |
6 | 6 |
hidden = TRUE |
7 | 7 |
|
8 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
9 |
version = "7.29"
|
|
8 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
9 |
version = "7.30"
|
|
10 | 10 |
project = "drupal" |
11 |
datestamp = "1405543132"
|
|
11 |
datestamp = "1406239730"
|
|
12 | 12 |
|
drupal7/modules/node/tests/node_test.info | ||
---|---|---|
5 | 5 |
core = 7.x |
6 | 6 |
hidden = TRUE |
7 | 7 |
|
8 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
9 |
version = "7.29"
|
|
8 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
9 |
version = "7.30"
|
|
10 | 10 |
project = "drupal" |
11 |
datestamp = "1405543132"
|
|
11 |
datestamp = "1406239730"
|
|
12 | 12 |
|
drupal7/modules/node/tests/node_test_exception.info | ||
---|---|---|
5 | 5 |
core = 7.x |
6 | 6 |
hidden = TRUE |
7 | 7 |
|
8 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
9 |
version = "7.29"
|
|
8 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
9 |
version = "7.30"
|
|
10 | 10 |
project = "drupal" |
11 |
datestamp = "1405543132"
|
|
11 |
datestamp = "1406239730"
|
|
12 | 12 |
|
drupal7/modules/openid/openid.info | ||
---|---|---|
5 | 5 |
core = 7.x |
6 | 6 |
files[] = openid.test |
7 | 7 |
|
8 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
9 |
version = "7.29"
|
|
8 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
9 |
version = "7.30"
|
|
10 | 10 |
project = "drupal" |
11 |
datestamp = "1405543132"
|
|
11 |
datestamp = "1406239730"
|
|
12 | 12 |
|
drupal7/modules/openid/tests/openid_test.info | ||
---|---|---|
6 | 6 |
dependencies[] = openid |
7 | 7 |
hidden = TRUE |
8 | 8 |
|
9 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
10 |
version = "7.29"
|
|
9 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
10 |
version = "7.30"
|
|
11 | 11 |
project = "drupal" |
12 |
datestamp = "1405543132"
|
|
12 |
datestamp = "1406239730"
|
|
13 | 13 |
|
drupal7/modules/overlay/overlay.info | ||
---|---|---|
4 | 4 |
version = VERSION |
5 | 5 |
core = 7.x |
6 | 6 |
|
7 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
8 |
version = "7.29"
|
|
7 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
8 |
version = "7.30"
|
|
9 | 9 |
project = "drupal" |
10 |
datestamp = "1405543132"
|
|
10 |
datestamp = "1406239730"
|
|
11 | 11 |
|
drupal7/modules/path/path.info | ||
---|---|---|
6 | 6 |
files[] = path.test |
7 | 7 |
configure = admin/config/search/path |
8 | 8 |
|
9 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
10 |
version = "7.29"
|
|
9 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
10 |
version = "7.30"
|
|
11 | 11 |
project = "drupal" |
12 |
datestamp = "1405543132"
|
|
12 |
datestamp = "1406239730"
|
|
13 | 13 |
|
drupal7/modules/php/php.info | ||
---|---|---|
5 | 5 |
core = 7.x |
6 | 6 |
files[] = php.test |
7 | 7 |
|
8 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
9 |
version = "7.29"
|
|
8 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
9 |
version = "7.30"
|
|
10 | 10 |
project = "drupal" |
11 |
datestamp = "1405543132"
|
|
11 |
datestamp = "1406239730"
|
|
12 | 12 |
|
drupal7/modules/poll/poll.info | ||
---|---|---|
6 | 6 |
files[] = poll.test |
7 | 7 |
stylesheets[all][] = poll.css |
8 | 8 |
|
9 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
10 |
version = "7.29"
|
|
9 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
10 |
version = "7.30"
|
|
11 | 11 |
project = "drupal" |
12 |
datestamp = "1405543132"
|
|
12 |
datestamp = "1406239730"
|
|
13 | 13 |
|
drupal7/modules/profile/profile.info | ||
---|---|---|
11 | 11 |
; See user_system_info_alter(). |
12 | 12 |
hidden = TRUE |
13 | 13 |
|
14 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
15 |
version = "7.29"
|
|
14 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
15 |
version = "7.30"
|
|
16 | 16 |
project = "drupal" |
17 |
datestamp = "1405543132"
|
|
17 |
datestamp = "1406239730"
|
|
18 | 18 |
|
drupal7/modules/rdf/rdf.info | ||
---|---|---|
5 | 5 |
core = 7.x |
6 | 6 |
files[] = rdf.test |
7 | 7 |
|
8 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
9 |
version = "7.29"
|
|
8 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
9 |
version = "7.30"
|
|
10 | 10 |
project = "drupal" |
11 |
datestamp = "1405543132"
|
|
11 |
datestamp = "1406239730"
|
|
12 | 12 |
|
drupal7/modules/rdf/tests/rdf_test.info | ||
---|---|---|
5 | 5 |
core = 7.x |
6 | 6 |
hidden = TRUE |
7 | 7 |
|
8 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
9 |
version = "7.29"
|
|
8 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
9 |
version = "7.30"
|
|
10 | 10 |
project = "drupal" |
11 |
datestamp = "1405543132"
|
|
11 |
datestamp = "1406239730"
|
|
12 | 12 |
|
drupal7/modules/search/search.info | ||
---|---|---|
8 | 8 |
configure = admin/config/search/settings |
9 | 9 |
stylesheets[all][] = search.css |
10 | 10 |
|
11 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
12 |
version = "7.29"
|
|
11 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
12 |
version = "7.30"
|
|
13 | 13 |
project = "drupal" |
14 |
datestamp = "1405543132"
|
|
14 |
datestamp = "1406239730"
|
|
15 | 15 |
|
drupal7/modules/search/tests/search_embedded_form.info | ||
---|---|---|
5 | 5 |
core = 7.x |
6 | 6 |
hidden = TRUE |
7 | 7 |
|
8 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
9 |
version = "7.29"
|
|
8 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
9 |
version = "7.30"
|
|
10 | 10 |
project = "drupal" |
11 |
datestamp = "1405543132"
|
|
11 |
datestamp = "1406239730"
|
|
12 | 12 |
|
drupal7/modules/search/tests/search_extra_type.info | ||
---|---|---|
5 | 5 |
core = 7.x |
6 | 6 |
hidden = TRUE |
7 | 7 |
|
8 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
9 |
version = "7.29"
|
|
8 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
9 |
version = "7.30"
|
|
10 | 10 |
project = "drupal" |
11 |
datestamp = "1405543132"
|
|
11 |
datestamp = "1406239730"
|
|
12 | 12 |
|
drupal7/modules/shortcut/shortcut.info | ||
---|---|---|
6 | 6 |
files[] = shortcut.test |
7 | 7 |
configure = admin/config/user-interface/shortcut |
8 | 8 |
|
9 |
; Information added by Drupal.org packaging script on 2014-07-16
|
|
10 |
version = "7.29"
|
|
9 |
; Information added by Drupal.org packaging script on 2014-07-24
|
|
10 |
version = "7.30"
|
|
11 | 11 |
project = "drupal" |
12 |
datestamp = "1405543132"
|
|
12 |
datestamp = "1406239730"
|
|
13 | 13 |
|
drupal7/modules/simpletest/drupal_web_test_case.php | ||
---|---|---|
2624 | 2624 |
* |
2625 | 2625 |
* @param $label |
2626 | 2626 |
* Text between the anchor tags. |
2627 |
* @param $index |
|
2628 |
* Link position counting from zero. |
|
2629 | 2627 |
* @param $message |
2630 | 2628 |
* Message to display. |
2631 | 2629 |
* @param $group |
... | ... | |
3189 | 3187 |
* @param $callback |
3190 | 3188 |
* The name of the theme function to invoke; e.g. 'links' for theme_links(). |
3191 | 3189 |
* @param $variables |
3192 |
* An array of variables to pass to the theme function. |
|
3190 |
* (optional) An array of variables to pass to the theme function.
|
|
3193 | 3191 |
* @param $expected |
3194 | 3192 |
* The expected themed output string. |
3195 | 3193 |
* @param $message |
... | ... | |
3225 | 3223 |
* @param $xpath |
3226 | 3224 |
* XPath used to find the field. |
3227 | 3225 |
* @param $value |
3228 |
* (optional) Value of the field to assert. |
|
3226 |
* (optional) Value of the field to assert. You may pass in NULL (default) |
|
3227 |
* to skip checking the actual value, while still checking that the field |
|
3228 |
* exists. |
|
3229 | 3229 |
* @param $message |
3230 | 3230 |
* (optional) Message to display. |
3231 | 3231 |
* @param $group |
... | ... | |
3293 | 3293 |
} |
3294 | 3294 |
|
3295 | 3295 |
/** |
3296 |
* Asserts that a field does not exist in the current page by the given XPath.
|
|
3296 |
* Asserts that a field doesn't exist or its value doesn't match, by XPath.
|
|
3297 | 3297 |
* |
3298 | 3298 |
* @param $xpath |
3299 | 3299 |
* XPath used to find the field. |
3300 | 3300 |
* @param $value |
3301 |
* (optional) Value of the field to assert. |
|
3301 |
* (optional) Value for the field, to assert that the field's value on the |
|
3302 |
* page doesn't match it. You may pass in NULL to skip checking the |
|
3303 |
* value, while still checking that the field doesn't exist. |
|
3302 | 3304 |
* @param $message |
3303 | 3305 |
* (optional) Message to display. |
3304 | 3306 |
* @param $group |
... | ... | |
3331 | 3333 |
* @param $name |
3332 | 3334 |
* Name of field to assert. |
3333 | 3335 |
* @param $value |
3334 |
* Value of the field to assert. |
|
3336 |
* (optional) Value of the field to assert. You may pass in NULL (default) |
|
3337 |
* to skip checking the actual value, while still checking that the field |
|
3338 |
* exists. |
|
3335 | 3339 |
* @param $message |
3336 | 3340 |
* Message to display. |
3337 | 3341 |
* @param $group |
... | ... | |
3362 | 3366 |
* @param $name |
3363 | 3367 |
* Name of field to assert. |
3364 | 3368 |
* @param $value |
3365 |
* Value of the field to assert. |
|
3369 |
* (optional) Value for the field, to assert that the field's value on the |
|
3370 |
* page doesn't match it. You may pass in NULL to skip checking the |
|
3371 |
* value, while still checking that the field doesn't exist. However, the |
|
3372 |
* default value ('') asserts that the field value is not an empty string. |
|
3366 | 3373 |
* @param $message |
3367 |
* Message to display. |
|
3374 |
* (optional) Message to display.
|
|
3368 | 3375 |
* @param $group |
3369 | 3376 |
* The group this message belongs to. |
3370 | 3377 |
* @return |
... | ... | |
3375 | 3382 |
} |
3376 | 3383 |
|
3377 | 3384 |
/** |
3378 |
* Asserts that a field exists in the current page with the given id and value.
|
|
3385 |
* Asserts that a field exists in the current page with the given ID and value.
|
|
3379 | 3386 |
* |
3380 | 3387 |
* @param $id |
3381 |
* Id of field to assert.
|
|
3388 |
* ID of field to assert.
|
|
3382 | 3389 |
* @param $value |
3383 |
* Value of the field to assert. |
|
3390 |
* (optional) Value for the field to assert. You may pass in NULL to skip |
|
3391 |
* checking the value, while still checking that the field exists. |
|
3392 |
* However, the default value ('') asserts that the field value is an empty |
|
3393 |
* string. |
|
3384 | 3394 |
* @param $message |
3385 |
* Message to display. |
|
3395 |
* (optional) Message to display.
|
|
3386 | 3396 |
* @param $group |
3387 | 3397 |
* The group this message belongs to. |
3388 | 3398 |
* @return |
... | ... | |
3393 | 3403 |
} |
3394 | 3404 |
|
3395 | 3405 |
/** |
3396 |
* Asserts that a field does not exist with the given id and value.
|
|
3406 |
* Asserts that a field does not exist with the given ID and value.
|
|
3397 | 3407 |
* |
3398 | 3408 |
* @param $id |
3399 |
* Id of field to assert.
|
|
3409 |
* ID of field to assert.
|
|
3400 | 3410 |
* @param $value |
3401 |
* Value of the field to assert. |
|
3411 |
* (optional) Value for the field, to assert that the field's value on the |
|
3412 |
* page doesn't match it. You may pass in NULL to skip checking the value, |
|
3413 |
* while still checking that the field doesn't exist. However, the default |
|
3414 |
* value ('') asserts that the field value is not an empty string. |
|
3402 | 3415 |
* @param $message |
3403 |
* Message to display. |
|
3416 |
* (optional) Message to display.
|
|
3404 | 3417 |
* @param $group |
3405 | 3418 |
* The group this message belongs to. |
3406 | 3419 |
* @return |
... | ... | |
3414 | 3427 |
* Asserts that a checkbox field in the current page is checked. |
3415 | 3428 |
* |
3416 | 3429 |
* @param $id |
3417 |
* Id of field to assert.
|
|
3430 |
* ID of field to assert.
|
|
3418 | 3431 |
* @param $message |
3419 |
* Message to display. |
|
3432 |
* (optional) Message to display.
|
|
3420 | 3433 |
* @return |
3421 | 3434 |
* TRUE on pass, FALSE on fail. |
3422 | 3435 |
*/ |
... | ... | |
3429 | 3442 |
* Asserts that a checkbox field in the current page is not checked. |
3430 | 3443 |
* |
3431 | 3444 |
* @param $id |
3432 |
* Id of field to assert.
|
|
3445 |
* ID of field to assert.
|
|
3433 | 3446 |
* @param $message |
3434 |
* Message to display. |
|
3447 |
* (optional) Message to display.
|
|
3435 | 3448 |
* @return |
3436 | 3449 |
* TRUE on pass, FALSE on fail. |
3437 | 3450 |
*/ |
... | ... | |
3444 | 3457 |
* Asserts that a select option in the current page is checked. |
3445 | 3458 |
* |
3446 | 3459 |
* @param $id |
3447 |
* Id of select field to assert.
|
|
3460 |
* ID of select field to assert.
|
|
3448 | 3461 |
* @param $option |
3449 | 3462 |
* Option to assert. |
3450 | 3463 |
* @param $message |
3451 |
* Message to display. |
|
3464 |
* (optional) Message to display.
|
|
3452 | 3465 |
* @return |
3453 | 3466 |
* TRUE on pass, FALSE on fail. |
3454 | 3467 |
* |
... | ... | |
3463 | 3476 |
* Asserts that a select option in the current page is not checked. |
3464 | 3477 |
* |
3465 | 3478 |
* @param $id |
3466 |
* Id of select field to assert.
|
|
3479 |
* ID of select field to assert.
|
|
3467 | 3480 |
* @param $option |
3468 | 3481 |
* Option to assert. |
3469 | 3482 |
* @param $message |
3470 |
* Message to display. |
|
3483 |
* (optional) Message to display.
|
|
3471 | 3484 |
* @return |
3472 | 3485 |
* TRUE on pass, FALSE on fail. |
3473 | 3486 |
*/ |
... | ... | |
3477 | 3490 |
} |
3478 | 3491 |
|
3479 | 3492 |
/** |
3480 |
* Asserts that a field exists with the given name or id.
|
|
3493 |
* Asserts that a field exists with the given name or ID.
|
|
3481 | 3494 |
* |
3482 | 3495 |
* @param $field |
3483 |
* Name or id of field to assert.
|
|
3496 |
* Name or ID of field to assert.
|
|
3484 | 3497 |
* @param $message |
3485 |
* Message to display. |
|
3498 |
* (optional) Message to display.
|
|
3486 | 3499 |
* @param $group |
3487 | 3500 |
* The group this message belongs to. |
3488 | 3501 |
* @return |
... | ... | |
3493 | 3506 |
} |
3494 | 3507 |
|
3495 | 3508 |
/** |
3496 |
* Asserts that a field does not exist with the given name or id.
|
|
3509 |
* Asserts that a field does not exist with the given name or ID.
|
|
3497 | 3510 |
* |
3498 | 3511 |
* @param $field |
3499 |
* Name or id of field to assert.
|
|
3512 |
* Name or ID of field to assert.
|
|
3500 | 3513 |
* @param $message |
3501 |
* Message to display. |
|
3514 |
* (optional) Message to display.
|
|
3502 | 3515 |
* @param $group |
3503 | 3516 |
* The group this message belongs to. |
3504 | 3517 |
* @return |
drupal7/modules/simpletest/simpletest.info | ||
---|---|---|
56 | 56 |
files[] = tests/upgrade/update.field.test |
57 | 57 |
files[] = tests/upgrade/update.user.test |
58 | 58 |
|
59 |
; Information added by Drupal.org packaging script on 2014-07-16 |
|
60 |
version = "7.29" |
|
59 |
; Information added by Drupal.org packaging script on 2014-07-24 |
Formats disponibles : Unified diff
Update drupal to 7.30