function features_template_system_info_alter in Features Items Template 7
Implements hook_system_info_alter().
Injects feature items into the info file. This will allow features to know that the module is the one defining these components.
File
- ./
features_template.module, line 109
Code
function features_template_system_info_alter(&$info, $file, $type) {
$data = features_template_infos();
foreach ($data as $datum) {
if (empty($datum['deleted'])) {
$plugin = features_template_get_template($datum['plugin']);
if ($file->name == $plugin['module']) {
$plugin['features info callback']($info, $datum);
}
}
}
}