security update for contrib modules
This commit is contained in:
@@ -13,7 +13,7 @@ function googleanalytics_variable_info($options) {
|
||||
'type' => 'string',
|
||||
'title' => t('Web Property ID', array(), $options),
|
||||
'default' => 'UA-',
|
||||
'description' => t('This ID is unique to each site you want to track separately, and is in the form of UA-xxxxxxx-yy. To get a Web Property ID, <a href="@analytics">register your site with Google Analytics</a>, or if you already have registered your site, go to your Google Analytics Settings page to see the ID next to every site profile. <a href="@webpropertyid">Find more information in the documentation</a>.', array('@analytics' => 'http://www.google.com/analytics/', '@webpropertyid' => url('https://developers.google.com/analytics/resources/concepts/gaConceptsAccounts', array('fragment' => 'webProperty'))), $options),
|
||||
'description' => t('This ID is unique to each site you want to track separately, and is in the form of UA-xxxxxxx-yy. To get a Web Property ID, <a href="@analytics">register your site with Google Analytics</a>, or if you already have registered your site, go to your Google Analytics Settings page to see the ID next to every site profile. <a href="@webpropertyid">Find more information in the documentation</a>.', array('@analytics' => 'https://marketingplatform.google.com/about/analytics/', '@webpropertyid' => url('https://developers.google.com/analytics/resources/concepts/gaConceptsAccounts', array('fragment' => 'webProperty'))), $options),
|
||||
'required' => TRUE,
|
||||
'group' => 'googleanalytics',
|
||||
'localize' => TRUE,
|
||||
@@ -40,6 +40,10 @@ function googleanalytics_variable_group_info() {
|
||||
|
||||
/**
|
||||
* Validate Web Property ID variable.
|
||||
*
|
||||
* @param array $variable
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function googleanalytics_validate_googleanalytics_account($variable) {
|
||||
// Replace all type of dashes (n-dash, m-dash, minus) with the normal dashes.
|
||||
|
||||
Reference in New Issue
Block a user