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/handlers/views_handler_field_ctools_dropdown.inc
11 11
 * @ingroup views_field_handlers
12 12
 */
13 13
class views_handler_field_ctools_dropdown extends views_handler_field_links {
14
  function option_definition() {
14

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

  
17 21
    $options['views_admin_css'] = array('default' => TRUE, 'bool' => TRUE);
......
19 23
    return $options;
20 24
  }
21 25

  
22
  function options_form(&$form, &$form_state) {
26
  /**
27
   * {@inheritdoc}
28
   */
29
  public function options_form(&$form, &$form_state) {
23 30
    parent::options_form($form, $form_state);
24 31
    $form['fields']['#description'] = t('Fields to be included as ctools dropdown button.');
25 32
    $form['destination']['#description'] = t('Include a "destination" parameter in the link to return the user to the original view upon completing a link action.');
......
35 42
  /**
36 43
   * Render the dropdown button.
37 44
   */
38
  function render($values) {
45
  public function render($values) {
39 46
    static $added_admin_css;
40 47
    $links = $this->get_links();
41 48

  
......
46 53
        $added_admin_css = TRUE;
47 54
      }
48 55

  
49
      return theme('links__ctools_dropbutton', array('links' => $links, 'attributes' => array('class' => array('links', 'inline'))));
56
      $vars = array(
57
        'links' => $links,
58
        'attributes' => array(
59
          'class' => array(
60
            'links',
61
            'inline',
62
          ),
63
        ),
64
      );
65
      return theme('links__ctools_dropbutton', $vars);
50 66
    }
51 67
    else {
52 68
      return '';
53 69
    }
54 70
  }
71

  
55 72
}

Formats disponibles : Unified diff