You are here

function views_fusion_apply_contextual_links in Fusion Accelerator 7

Same name and namespace in other branches
  1. 7.2 fusion_apply/modules/views.fusion.inc \views_fusion_apply_contextual_links()

Fusion Apply contextual links handler.

Related topics

1 string reference to 'views_fusion_apply_contextual_links'
views_fusion_apply_config_info in fusion_apply/modules/views.fusion.inc
Implements hook_fusion_apply_config_info().

File

fusion_apply/modules/views.fusion.inc, line 81
Provide skins handling for views.module

Code

function views_fusion_apply_contextual_links(&$variables) {
  $links = array();
  if (!empty($variables['page']['#views_contextual_links_info'])) {
    $links['fusion_apply-views'] = array(
      'admin/appearance/fusion/edit/nojs',
      array(
        'views',
        $variables['page']['#views_contextual_links_info']['views_ui']['view_name'] . '__' . $variables['page']['#views_contextual_links_info']['views_ui']['view_display_id'],
      ),
    );
  }
  return $links;
}