Credit: Aimee Degnan - Hook 42
hook_features_api()
hook_features_export()
hook_features_export_options()
hook_features_export_render()
hook_features_revert()
hook_features_rebuild()
See features.api.php
.
.info
file.inc
filesdefault
hooksUse it.
Use it a lot.
Then use it more.
drush fl
drush fdiff
drush fu
drush fr
drush fra --force
drush fb
!!!Features Builder
and Features Builder Default
modulesdrush fb [--enable] [-y]
hook_features_builders_info()
hook_features_builders_info_alter()
hook_features_builder_components_FEATURE_alter()
FeaturesBuilderBase
classsetComponents()
method$this->components['views_view']['frontpage'] = TRUE;
$this->setAllComponents('node');
$this->setNamedComponents('node', array('article'));
$this->setRegexComponents('variable', '/^user_.*/');
$this->setFields($entity_type, $bundle);