Projet

Général

Profil

Révision 5d12d676

Ajouté par Assos Assos il y a environ 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/views/plugins/views_plugin_style_grid.inc
2 2

  
3 3
/**
4 4
 * @file
5
 * Contains the grid style plugin.
5
 * Definition of views_plugin_style_grid.
6 6
 */
7 7

  
8 8
/**
......
11 11
 * @ingroup views_style_plugins
12 12
 */
13 13
class views_plugin_style_grid extends views_plugin_style {
14

  
14 15
  /**
15
   * Set default options
16
   * Set default options.
16 17
   */
17
  function option_definition() {
18
  public function option_definition() {
18 19
    $options = parent::option_definition();
19 20

  
20 21
    $options['columns'] = array('default' => '4');
......
29 30
  /**
30 31
   * Render the given style.
31 32
   */
32
  function options_form(&$form, &$form_state) {
33
  public function options_form(&$form, &$form_state) {
33 34
    parent::options_form($form, $form_state);
34 35
    $form['columns'] = array(
35 36
      '#type' => 'textfield',
......
67 68
      '#default_value' => $this->options['summary'],
68 69
    );
69 70
  }
71

  
70 72
}

Formats disponibles : Unified diff