Projet

Général

Profil

Révision e4c061ad

Ajouté par Assos Assos il y a plus de 9 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/ctools/views_content/views_content.module
281 281
    'view display id' => $id,
282 282
  );
283 283
}
284

  
285
/**
286
 * Implements hook_get_pane_links_alter().
287
 */
288
function views_content_get_pane_links_alter(&$links, $pane, $content_type) {
289
  if ($pane->type === 'views_panes') {
290
    list($view_name, $display_name) = explode('-', $pane->subtype);
291
    $destination = array('destination' => current_path());
292
    $links['top'][] = array(
293
      'title' => t('Edit view'),
294
      'href' => url('admin/structure/views/view/' . $view_name . '/edit/' . $display_name, array('query' => $destination, 'absolute' => TRUE)),
295
    );
296
  }
297
}

Formats disponibles : Unified diff