You are here

function views_features_pipe_views_view_alter in Features 7.2

Same name and namespace in other branches
  1. 7 includes/features.ctools.inc \views_features_pipe_views_view_alter()

Implements hook_features_pipe_COMPONENT_alter() for views_view.

File

includes/features.ctools.inc, line 501
Features integration for 'ctools' module.

Code

function views_features_pipe_views_view_alter(&$pipe, $data, $export) {

  // @todo Remove this check before next stable release.
  if (!function_exists('views_plugin_list')) {
    return;
  }
  $map = array_flip($data);
  foreach (views_plugin_list() as $plugin) {
    foreach ($plugin['views'] as $view_name) {
      if (isset($map[$view_name])) {
        $pipe['dependencies'][$plugin['module']] = $plugin['module'];
      }
    }
  }
}