You are here

function menu_features_export in Features 6

Same name and namespace in other branches
  1. 7.2 includes/features.menu.inc \menu_features_export()
  2. 7 includes/features.menu.inc \menu_features_export()

Implementation of hook_features_export(). DEPRECATED: This implementation simply migrates deprecated `menu` items to the `menu_links` type.

File

includes/features.menu.inc, line 35

Code

function menu_features_export($data, &$export, $module_name = '') {
  $pipe = array();
  foreach ($data as $path) {
    $pipe['menu_links'][] = "features:{$path}";
  }
  return $pipe;
}