more module updates
This commit is contained in:
@@ -84,6 +84,8 @@
|
||||
* - "repeat": Array of variable properties for children variables.
|
||||
* - "localize": Boolean value, TRUE for variables that should be localized. This may be used by other modules.
|
||||
* - "validate callback": Callback to validate the variable value, it will be added to form element #validate.
|
||||
*
|
||||
* @see hook_variable_info_alter()
|
||||
*/
|
||||
function hook_variable_info($options) {
|
||||
$variables['site_name'] = array(
|
||||
@@ -102,6 +104,17 @@ function hook_variable_info($options) {
|
||||
return $variables;
|
||||
}
|
||||
|
||||
/**
|
||||
* Alter the variable definitions.
|
||||
*
|
||||
* @param $info
|
||||
* The variable info array, keyed by variable name.
|
||||
*
|
||||
* @see hook_variable_info()
|
||||
*/
|
||||
function hook_variable_info_alter(&$info) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Define types of variables or list of values used by a module.
|
||||
*
|
||||
@@ -145,6 +158,8 @@ function hook_variable_info($options) {
|
||||
*
|
||||
* A special attribute:
|
||||
* - "type": Variable subtype, the properties for the subtype will be added to these ones.
|
||||
*
|
||||
* @see hook_variable_type_info_alter()
|
||||
*/
|
||||
function hook_variable_type_info() {
|
||||
$type['mail_address'] = array(
|
||||
@@ -162,6 +177,17 @@ function hook_variable_type_info() {
|
||||
return $type;
|
||||
}
|
||||
|
||||
/**
|
||||
* Alter the variable type definitions.
|
||||
*
|
||||
* @param $info
|
||||
* The variable type info array, keyed by variable type name.
|
||||
*
|
||||
* @see hook_variable_type_info()
|
||||
*/
|
||||
function hook_variable_type_info_alter(&$info) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Define groups of variables used by a module.
|
||||
*
|
||||
@@ -181,6 +207,8 @@ function hook_variable_type_info() {
|
||||
* - "description": The human readable description of the group. Must be localized.
|
||||
* - "access": Permission required to edit group's variables. Will default to 'administer site configuration'.
|
||||
* - "path": Array of administration paths where these variables can be accessed.
|
||||
*
|
||||
* @see hook_variable_group_info_alter()
|
||||
*/
|
||||
function hook_variable_group_info() {
|
||||
$groups['system_site_information'] = array(
|
||||
@@ -197,6 +225,17 @@ function hook_variable_group_info() {
|
||||
return $groups;
|
||||
}
|
||||
|
||||
/**
|
||||
* Alter the variable group definitions.
|
||||
*
|
||||
* @param $info
|
||||
* The variable type info array, keyed by variable group name.
|
||||
*
|
||||
* @see hook_variable_group_info()
|
||||
*/
|
||||
function hook_variable_group_info_alter(&$info) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Alter system settings forms.
|
||||
*
|
||||
|
Reference in New Issue
Block a user