Projet

Général

Profil

Révision 219d19c4

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

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/ctools/views_content/plugins/views/views_content_plugin_display_panel_pane.inc
4 4
 * The plugin that handles a panel_pane.
5 5
 */
6 6
class views_content_plugin_display_panel_pane extends views_plugin_display {
7

  
7 8
  /**
8 9
   * If this variable is true, this display counts as a panel pane. We use
9 10
   * this variable so that other modules can create alternate pane displays.
......
11 12
  public $panel_pane_display = TRUE;
12 13
  public $has_pane_conf = NULL;
13 14

  
14

  
15
  /**
16
   * {@inheritdoc}
17
   */
15 18
  public function option_definition() {
16 19
    $options = parent::option_definition();
17 20

  
......
382 385
    return (bool) $conf['more_link'];
383 386
  }
384 387

  
388
  /**
389
   * {@inheritdoc}
390
   */
391
  public function has_path() {
392
    return TRUE;
393
  }
394

  
395
  /**
396
   * {@inheritdoc}
397
   */
398
  public function validate() {
399
    // To bypass the validation of the path from Views we temporarily
400
    // override the path if one doesn't exist because it will be generated
401
    // by panels though we want the rest of the validations to run.
402
    $path = $this->get_path();
403
    if (!$path) {
404
      $this->set_option('path', $_GET['q']);
405
    }
406

  
407
    return parent::validate();
408
  }
385 409

  
410
  /**
411
   * {@inheritdoc}
412
   */
386 413
  public function get_path() {
387 414
    if (empty($this->view->override_path)) {
388 415
      return parent::get_path();

Formats disponibles : Unified diff