function strongarm_features_pipe_node_alter in Strongarm 7.2
Same name and namespace in other branches
- 6.2 strongarm.module \strongarm_features_pipe_node_alter()
Implements hook_features_pipe_alter() for node component. Add node type variables on behalf of core modules.
File
- ./
strongarm.module, line 194
Code
function strongarm_features_pipe_node_alter(&$pipe, $data, $export) {
if (!empty($data)) {
$variables = array();
if (module_exists('comment')) {
$variables = array(
'comment',
'comment_anonymous',
'comment_controls',
'comment_default_mode',
'comment_default_order',
'comment_default_per_page',
'comment_form_location',
'comment_preview',
'comment_subject_field',
);
}
$variables = array_merge($variables, array(
'field_bundle_settings_node_',
'language_content_type',
'menu_options',
'menu_parent',
'node_options',
'node_preview',
'node_submitted',
));
foreach ($data as $node_type) {
foreach ($variables as $variable_name) {
$pipe['variable'][] = "{$variable_name}_{$node_type}";
}
}
}
}