You are here

function drush_structure_sync_export_menus in Structure Sync 8

Same name and namespace in other branches
  1. 2.x structure_sync.drush.inc \drush_structure_sync_export_menus()

Call back function drush_structure_sync_export_menus()

The call back function name in the following format drush_{module_name}_{item_id_for_command}()

1 call to drush_structure_sync_export_menus()
drush_structure_sync_export_all in ./structure_sync.drush.inc
Call back function drush_structure_sync_export_all()

File

./structure_sync.drush.inc, line 191
Drush commands for syncing structure content.

Code

function drush_structure_sync_export_menus() {
  drush_print('Exporting menu links...');
  StructureSyncHelper::exportMenuLinks([
    'drush' => TRUE,
  ]);
  drush_log('Successfully exported menu links', 'ok');
}