non security modules update

This commit is contained in:
Bachir Soussi Chiadmi
2015-04-20 16:32:07 +02:00
parent 6a8d30db08
commit 37fbabab56
466 changed files with 32690 additions and 9652 deletions

View File

@@ -219,6 +219,42 @@ function hook_features_rebuild($module_name) {
}
}
/**
* Invoked before a restore operation is run.
*
* This hook is called before any of the restore operations on the components is
* run.
*
* @param string $op
* The operation that is triggered: revert, rebuild, disable, enable
* @param array $items
* The items handled by the operation.
*/
function hook_features_pre_restore($op, $items) {
if ($op == 'rebuild') {
// Use features rebuild to rebuild the features independent exports too.
entity_defaults_rebuild();
}
}
/**
* Invoked after a restore operation is run.
*
* This hook is called after any of the restore operations on the components is
* run.
*
* @param string $op
* The operation that is triggered: revert, rebuild, disable, enable
* @param array $items
* The items handled by the operation.
*/
function hook_features_post_restore($op, $items) {
if ($op == 'rebuild') {
// Use features rebuild to rebuild the features independent exports too.
entity_defaults_rebuild();
}
}
/**
* Alter the final array of Component names to be exported, just prior to
* the rendering of defaults. Allows modules a final say in whether or not
@@ -293,6 +329,8 @@ function hook_features_pipe_alter(&$pipe, $data, $export) {
*/
/**
* Deprecated as of 7.x-2.0.
*
* Alter the default fields right before they are cached into the database.
*
* @param &$fields
@@ -301,6 +339,24 @@ function hook_features_pipe_alter(&$pipe, $data, $export) {
function hook_field_default_fields_alter(&$fields) {
}
/**
* Alter the base fields right before they are cached into the database.
*
* @param &$fields
* By reference. The fields that have been declared by another feature.
*/
function hook_field_default_field_bases_alter(&$fields) {
}
/**
* Alter the field instances right before they are cached into the database.
*
* @param &$fields
* By reference. The fields that have been declared by another feature.
*/
function hook_field_default_field_instances_alter(&$fields) {
}
/**
* Alter the default fieldgroup groups right before they are cached into the
* database.