Révision c12e7e6a
Ajouté par Assos Assos il y a plus de 10 ans
htmltest/sites/all/modules/addthis/addthis.info | ||
---|---|---|
11 | 11 |
|
12 | 12 |
configure = admin/config/user-interface/addthis |
13 | 13 |
|
14 |
; Information added by Drupal.org packaging script on 2014-01-15
|
|
15 |
version = "7.x-4.0-alpha3"
|
|
14 |
; Information added by Drupal.org packaging script on 2014-01-22
|
|
15 |
version = "7.x-4.0-alpha4"
|
|
16 | 16 |
core = "7.x" |
17 | 17 |
project = "addthis" |
18 |
datestamp = "1389775420"
|
|
18 |
datestamp = "1390384409"
|
|
19 | 19 |
|
htmltest/sites/all/modules/addthis/addthis_displays/addthis_displays.addthis.inc | ||
---|---|---|
90 | 90 |
function addthis_displays_addthis_display_markup__addthis_basic_button($options = array()) { |
91 | 91 |
|
92 | 92 |
$addthis = AddThis::getInstance(); |
93 |
$settings = $options['#display']['settings']; |
|
93 | 94 |
|
94 | 95 |
$button_img = 'http://s7.addthis.com/static/btn/sm-share-en.gif'; |
95 |
if ($options['#display']['settings']['button_size'] == 'big') {
|
|
96 |
if (isset($settings['buttons_size']) && $settings['buttons_size'] == 'big') {
|
|
96 | 97 |
$button_img = 'http://s7.addthis.com/static/btn/v2/lg-share-en.gif'; |
97 | 98 |
} |
98 | 99 |
$button_img = $addthis->transformToSecureUrl($button_img); |
99 | 100 |
|
101 |
$extra_css = isset($settings['extra_css']) ? $settings['extra_css'] : ''; |
|
100 | 102 |
$element = array( |
101 | 103 |
'#theme' => 'addthis_wrapper', |
102 | 104 |
'#tag' => 'a', |
103 | 105 |
'#attributes' => array( |
104 | 106 |
'class' => array( |
105 | 107 |
'addthis_button', |
106 |
$options['#display']['settings']['extra_css'],
|
|
108 |
$extra_css,
|
|
107 | 109 |
), |
108 | 110 |
), |
109 | 111 |
); |
110 | 112 |
$element['#attributes'] += $addthis->getAddThisAttributesMarkup($options); |
111 | 113 |
|
112 |
// Create img button |
|
114 |
// Create img button.
|
|
113 | 115 |
$image = array( |
114 | 116 |
'#theme' => 'addthis_element', |
115 | 117 |
'#tag' => 'img', |
htmltest/sites/all/modules/addthis/addthis_displays/addthis_displays.info | ||
---|---|---|
5 | 5 |
dependencies[] = addthis |
6 | 6 |
files[] = addthis_displays.field.inc |
7 | 7 |
|
8 |
; Information added by Drupal.org packaging script on 2014-01-15
|
|
9 |
version = "7.x-4.0-alpha3"
|
|
8 |
; Information added by Drupal.org packaging script on 2014-01-22
|
|
9 |
version = "7.x-4.0-alpha4"
|
|
10 | 10 |
core = "7.x" |
11 | 11 |
project = "addthis" |
12 |
datestamp = "1389775420"
|
|
12 |
datestamp = "1390384409"
|
|
13 | 13 |
|
htmltest/sites/all/modules/addthis/classes/AddThis.php | ||
---|---|---|
286 | 286 |
|
287 | 287 |
if (!isset($loaded)) { |
288 | 288 |
$loaded = TRUE; |
289 |
$this::addWidgetJs();
|
|
289 |
$this->addWidgetJs();
|
|
290 | 290 |
|
291 | 291 |
return TRUE; |
292 | 292 |
} |
... | ... | |
354 | 354 |
return array(); |
355 | 355 |
} |
356 | 356 |
|
357 |
/** |
|
358 |
* Get the type used for the block. |
|
359 |
*/ |
|
357 | 360 |
public function getBlockDisplayType() { |
358 | 361 |
return variable_get(self::BLOCK_WIDGET_TYPE_KEY, self::WIDGET_TYPE_DISABLED); |
359 | 362 |
} |
360 | 363 |
|
364 |
/** |
|
365 |
* Get the settings used by the block display. |
|
366 |
*/ |
|
361 | 367 |
public function getBlockDisplaySettings() { |
362 |
return variable_get(self::BLOCK_WIDGET_SETTINGS_KEY, array()); |
|
368 |
$settings = variable_get(self::BLOCK_WIDGET_SETTINGS_KEY, NULL); |
|
369 |
|
|
370 |
if ($settings == NULL && $this->getBlockDisplayType() != self::WIDGET_TYPE_DISABLED) { |
|
371 |
$settings = field_info_formatter_settings($this->getBlockDisplayType()); |
|
372 |
} |
|
373 |
|
|
374 |
return $settings; |
|
363 | 375 |
} |
364 | 376 |
|
365 | 377 |
public function getProfileId() { |
htmltest/sites/all/modules/nodeaccess/nodeaccess.info | ||
---|---|---|
5 | 5 |
configure = admin/config/people/nodeaccess |
6 | 6 |
version = 7.0-1.x |
7 | 7 |
|
8 |
; Information added by Drupal.org packaging script on 2014-01-14
|
|
9 |
version = "7.x-1.2"
|
|
8 |
; Information added by Drupal.org packaging script on 2014-01-17
|
|
9 |
version = "7.x-1.3"
|
|
10 | 10 |
core = "7.x" |
11 | 11 |
project = "nodeaccess" |
12 |
datestamp = "1389723809"
|
|
12 |
datestamp = "1389975818"
|
|
13 | 13 |
|
htmltest/sites/all/modules/nodeaccess/nodeaccess.module | ||
---|---|---|
872 | 872 |
*/ |
873 | 873 |
function theme_nodeaccess_grants_form($variables) { |
874 | 874 |
$output = ''; |
875 |
// @todo: Number of parameters in this theme funcion does not match number |
|
875 |
// @todo: Number of parameters in this theme function does not match number
|
|
876 | 876 |
// of parameters found in hook_theme. |
877 | 877 |
$form = $variables['form']; |
878 |
$rows = array(); |
|
878 | 879 |
$allowed_roles = variable_get('nodeaccess-roles', array()); |
879 | 880 |
$allowed_grants = variable_get('nodeaccess-grants', array()); |
880 | 881 |
// Retrieve role names for columns. |
htmltest/sites/all/modules/variable/variable.form.inc | ||
---|---|---|
154 | 154 |
} |
155 | 155 |
|
156 | 156 |
/** |
157 |
* Implement validate callback
|
|
157 |
* Execute submit callbacks for variables in form.
|
|
158 | 158 |
*/ |
159 |
function variable_form_element_validate($element, &$form_state, $form) { |
|
160 |
$variable = $element['#variable']; |
|
161 |
variable_include($variable); |
|
162 |
$variable['value'] = isset($element['#value']) ? $element['#value'] : NULL; |
|
163 |
if ($error = call_user_func($variable['validate callback'], $variable)) { |
|
164 |
form_error($element, $error); |
|
159 |
function variable_form_submit_callback($form, &$form_state) { |
|
160 |
if (isset($form['#variable_edit_form'])) { |
|
161 |
// This may contain some realm options. |
|
162 |
$options = isset($form['#variable_options']) ? $form['#variable_options'] : array(); |
|
163 |
foreach ($form['#variable_edit_form'] as $name) { |
|
164 |
$variable = variable_get_info($name); |
|
165 |
if ($variable && isset($variable['submit callback'])) { |
|
166 |
variable_include($variable); |
|
167 |
$variable['submit callback']($variable, $options, $form, $form_state); |
|
168 |
} |
|
169 |
} |
|
165 | 170 |
} |
166 | 171 |
} |
167 | 172 |
|
htmltest/sites/all/modules/variable/variable.info | ||
---|---|---|
12 | 12 |
files[] = includes/translation.variable.inc |
13 | 13 |
files[] = includes/user.variable.inc |
14 | 14 |
files[] = variable.test |
15 |
; Information added by drupal.org packaging script on 2013-08-09
|
|
16 |
version = "7.x-2.3"
|
|
15 |
; Information added by Drupal.org packaging script on 2014-01-21
|
|
16 |
version = "7.x-2.4"
|
|
17 | 17 |
core = "7.x" |
18 | 18 |
project = "variable" |
19 |
datestamp = "1376034993"
|
|
19 |
datestamp = "1390310315"
|
|
20 | 20 |
|
htmltest/sites/all/modules/variable/variable.module | ||
---|---|---|
415 | 415 |
* Form for variable list |
416 | 416 |
* |
417 | 417 |
* @param $list |
418 |
* Variable name or list of variable names |
|
418 |
* Variable name or list of variable names. |
|
419 |
* @param $options |
|
420 |
* Optional array with variable options. |
|
419 | 421 |
*/ |
420 |
function variable_edit_form($form, $form_state, $list, $options = array()) { |
|
421 |
// Pass on the values on the form for further reference. |
|
422 |
$form['#variable_edit_form'] = $list; |
|
423 |
form_load_include($form_state, 'form.inc', 'variable'); |
|
422 |
function variable_edit_form($form, &$form_state, $list, $options = array()) { |
|
423 |
$list = is_array($list) ? $list : array($list); |
|
424 |
$form = variable_base_form($form, $form_state, $list, $options); |
|
424 | 425 |
$form += variable_edit_subform($list, $options); |
425 | 426 |
return variable_settings_form($form, $options); |
426 | 427 |
} |
427 | 428 |
|
429 |
/** |
|
430 |
* Build base form for variable list without fields. |
|
431 |
* |
|
432 |
* @param $list |
|
433 |
* List of variable names. |
|
434 |
* @param $options |
|
435 |
* Optional array with variable options. |
|
436 |
*/ |
|
437 |
function variable_base_form($form, &$form_state, $list, $options = array()) { |
|
438 |
form_load_include($form_state, 'form.inc', 'variable'); |
|
439 |
// Pass on the values on the form for further reference. |
|
440 |
$form['#variable_edit_form'] = $list; |
|
441 |
$form['#variable_options'] = $options; |
|
442 |
// Run submit callback for variables in form. |
|
443 |
$form['#submit'][] = 'variable_form_submit_callback'; |
|
444 |
return $form; |
|
445 |
} |
|
446 |
|
|
428 | 447 |
/** |
429 | 448 |
* Form elements for variable list. |
430 | 449 |
* |
... | ... | |
682 | 701 |
} |
683 | 702 |
} |
684 | 703 |
|
704 |
/** |
|
705 |
* Implement validate callback. |
|
706 |
* |
|
707 |
* This needs to be in the module as it may be needed by form ajax callbacks. |
|
708 |
*/ |
|
709 |
function variable_form_element_validate($element, &$form_state, $form) { |
|
710 |
$options = isset($form['#variable_options']) ? $form['#variable_options'] : array(); |
|
711 |
$variable = $element['#variable']; |
|
712 |
variable_include($variable); |
|
713 |
$variable['value'] = isset($element['#value']) ? $element['#value'] : NULL; |
|
714 |
|
|
715 |
$error = $variable['validate callback']($variable, $options, $element, $form, $form_state); |
|
685 | 716 |
|
717 |
if ($error) { |
|
718 |
form_error($element, $error); |
|
719 |
} |
|
720 |
} |
|
686 | 721 |
|
687 | 722 |
/** |
688 | 723 |
* Implements hook_module_implements_alter(). |
... | ... | |
765 | 800 |
form_state_values_clean($form_state); |
766 | 801 |
// This may contain some realm options. |
767 | 802 |
$options = isset($form['#variable_options']) ? $form['#variable_options'] : array(); |
803 |
|
|
768 | 804 |
// Now run regular settings submission but using variable_set_value() |
769 | 805 |
foreach ($form_state['values'] as $key => $value) { |
770 | 806 |
if (is_array($value) && isset($form_state['values']['array_filter'])) { |
htmltest/sites/all/modules/variable/variable_admin/variable_admin.info | ||
---|---|---|
3 | 3 |
dependencies[] = variable |
4 | 4 |
package = Variable |
5 | 5 |
core = 7.x |
6 |
; Information added by drupal.org packaging script on 2013-08-09
|
|
7 |
version = "7.x-2.3"
|
|
6 |
; Information added by Drupal.org packaging script on 2014-01-21
|
|
7 |
version = "7.x-2.4"
|
|
8 | 8 |
core = "7.x" |
9 | 9 |
project = "variable" |
10 |
datestamp = "1376034993"
|
|
10 |
datestamp = "1390310315"
|
|
11 | 11 |
|
htmltest/sites/all/modules/variable/variable_advanced/variable_advanced.info | ||
---|---|---|
1 |
name = Variable advanced |
|
2 |
description = Provides access to advanced low level variables. By using this you will be able to break your site badly. |
|
3 |
dependencies[] = variable |
|
4 |
package = Variable |
|
5 |
core = 7.x |
|
6 |
; Information added by drupal.org packaging script on 2013-08-09 |
|
7 |
version = "7.x-2.3" |
|
8 |
core = "7.x" |
|
9 |
project = "variable" |
|
10 |
datestamp = "1376034993" |
|
11 |
|
htmltest/sites/all/modules/variable/variable_advanced/variable_advanced.module | ||
---|---|---|
1 |
<?php |
|
2 |
/** |
|
3 |
* @file |
|
4 |
* Drupal module - Advanced variable otpions. |
|
5 |
*/ |
htmltest/sites/all/modules/variable/variable_advanced/variable_advanced.variable.inc | ||
---|---|---|
1 |
<?php |
|
2 |
/** |
|
3 |
* @file |
|
4 |
* Advanced variables. |
|
5 |
*/ |
|
6 |
|
|
7 |
/** |
|
8 |
* Implements hook_variable_group_info(). |
|
9 |
*/ |
|
10 |
function variable_advanced_variable_group_info() { |
|
11 |
$groups['advanced'] = array( |
|
12 |
'title' => t('Advanced options'), |
|
13 |
'description' => t('Advanced settings not usually exposed. Changing these variables may seriously break your site so make sure you know what you do.'), |
|
14 |
); |
|
15 |
return $groups; |
|
16 |
} |
|
17 |
|
|
18 |
/** |
|
19 |
* Implements hook_variable_info(). |
|
20 |
*/ |
|
21 |
function variable_advanced_variable_info($options) { |
|
22 |
// Bootstrap caching options |
|
23 |
$variables['page_cache_invoke_hooks'] = array( |
|
24 |
'title' => t('Cache invoke hooks'), |
|
25 |
'type' => 'enable', |
|
26 |
'default' => 1, |
|
27 |
'group' => 'advanced', |
|
28 |
'description' => T('Invoke <em>boot</em> and <em>exit</em> hooks when the page is served from cache.'), |
|
29 |
); |
|
30 |
$variables['actions_max_stack'] = array( |
|
31 |
'title' => t('Actions recursion level'), |
|
32 |
'type' => 'number', |
|
33 |
'default' => 35, |
|
34 |
'group' => 'advanced', |
|
35 |
'description' => t('Maximum recursion level for actions before the execution is aborted.', array(), $options), |
|
36 |
); |
|
37 |
// Bootstrap language variables. |
|
38 |
$variables['language_count'] = array( |
|
39 |
'title' => t('Language count'), |
|
40 |
'type' => 'number', |
|
41 |
'default' => 1, |
|
42 |
'group' => 'advanced', |
|
43 |
'description' => t('Number of enabled languages, used for quick bootstrap. Not to be changed manually.', array(), $options), |
|
44 |
); |
|
45 |
$variables['language_types'] = array( |
|
46 |
'title' => t('Language types'), |
|
47 |
'type' => 'array', |
|
48 |
'default callback' => 'drupal_language_types', |
|
49 |
'group' => 'advanced', |
|
50 |
'description' => t('Available language types.'), |
|
51 |
); |
|
52 |
// Bootstrap proxy configuration |
|
53 |
$variables['reverse_proxy'] = array( |
|
54 |
'title' => t('Reverse proxy'), |
|
55 |
'type' => 'enable', |
|
56 |
'default' => 0, |
|
57 |
'group' => 'advanced', |
|
58 |
'description' => t('If Drupal is behind a reverse proxy, we use the X-Forwarded-For header instead of $_SERVER[\'REMOTE_ADDR\'], which would be the IP address of the proxy server, and not the client\'s. The actual header name can be configured by the reverse_proxy_header variable.', array(), $options), |
|
59 |
); |
|
60 |
$variables['reverse_proxy_header'] = array( |
|
61 |
'title' => t('Reverse proxy header'), |
|
62 |
'default' => 'HTTP_X_FORWARDED_FOR', |
|
63 |
'group' => 'advanced', |
|
64 |
); |
|
65 |
$variables['reverse_proxy_addresses'] = array( |
|
66 |
'title' => t('Reverse proxy addresses'), |
|
67 |
'type' => 'array', |
|
68 |
'group' => 'advanced', |
|
69 |
'default' => array(), |
|
70 |
'description' => t('If an array of known reverse proxy IPs is provided, then trust the XFF header if request really comes from one of them.', array(), $options), |
|
71 |
); |
|
72 |
return $variables; |
|
73 |
} |
htmltest/sites/all/modules/variable/variable_example/variable_example.info | ||
---|---|---|
6 | 6 |
core = 7.x |
7 | 7 |
files[] = variable_example.variable.inc |
8 | 8 |
|
9 |
; Information added by drupal.org packaging script on 2013-08-09
|
|
10 |
version = "7.x-2.3"
|
|
9 |
; Information added by Drupal.org packaging script on 2014-01-21
|
|
10 |
version = "7.x-2.4"
|
|
11 | 11 |
core = "7.x" |
12 | 12 |
project = "variable" |
13 |
datestamp = "1376034993"
|
|
13 |
datestamp = "1390310315"
|
|
14 | 14 |
|
htmltest/sites/all/modules/variable/variable_realm/variable_realm.form.inc | ||
---|---|---|
86 | 86 |
$form['realm_name'] = array('#type' => 'value', '#value' => $realm_name); |
87 | 87 |
$form['realm_key'] = array('#type' => 'value', '#value' => $realm_key); |
88 | 88 |
$options['realm'] = variable_realm($realm_name, $realm_key); |
89 |
|
|
89 | 90 |
if ($variable_list = $controller->getEnabledVariables()) { |
91 |
$form = variable_base_form($form, $form_state, $variable_list, $options); |
|
92 |
|
|
90 | 93 |
// Group variables by variable group for vertical tabls |
91 | 94 |
$group_list = array(); |
92 | 95 |
foreach ($variable_list as $variable_name) { |
htmltest/sites/all/modules/variable/variable_realm/variable_realm.info | ||
---|---|---|
8 | 8 |
files[] = variable_realm.class.inc |
9 | 9 |
files[] = variable_realm_union.class.inc |
10 | 10 |
|
11 |
; Information added by drupal.org packaging script on 2013-08-09
|
|
12 |
version = "7.x-2.3"
|
|
11 |
; Information added by Drupal.org packaging script on 2014-01-21
|
|
12 |
version = "7.x-2.4"
|
|
13 | 13 |
core = "7.x" |
14 | 14 |
project = "variable" |
15 |
datestamp = "1376034993"
|
|
15 |
datestamp = "1390310315"
|
|
16 | 16 |
|
htmltest/sites/all/modules/variable/variable_store/variable_store.info | ||
---|---|---|
8 | 8 |
files[] = variable_store.class.inc |
9 | 9 |
files[] = variable_store.test |
10 | 10 |
|
11 |
; Information added by drupal.org packaging script on 2013-08-09
|
|
12 |
version = "7.x-2.3"
|
|
11 |
; Information added by Drupal.org packaging script on 2014-01-21
|
|
12 |
version = "7.x-2.4"
|
|
13 | 13 |
core = "7.x" |
14 | 14 |
project = "variable" |
15 |
datestamp = "1376034993"
|
|
15 |
datestamp = "1390310315"
|
|
16 | 16 |
|
htmltest/sites/all/modules/variable/variable_views/variable_views.info | ||
---|---|---|
9 | 9 |
files[] = includes/views_handler_field_variable_title.inc |
10 | 10 |
files[] = includes/views_handler_field_variable_value.inc |
11 | 11 |
|
12 |
; Information added by drupal.org packaging script on 2013-08-09
|
|
13 |
version = "7.x-2.3"
|
|
12 |
; Information added by Drupal.org packaging script on 2014-01-21
|
|
13 |
version = "7.x-2.4"
|
|
14 | 14 |
core = "7.x" |
15 | 15 |
project = "variable" |
16 |
datestamp = "1376034993"
|
|
16 |
datestamp = "1390310315"
|
|
17 | 17 |
|
Formats disponibles : Unified diff
Weekly update of contrib modules