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_contextual_links.inc
11 11
 * @ingroup views_field_handlers
12 12
 */
13 13
class views_handler_field_contextual_links extends views_handler_field_links {
14
  function pre_render(&$values) {
14

  
15
  /**
16
   * {@inheritdoc}
17
   */
18
  public function pre_render(&$values) {
15 19
    // Add a row plugin css class for the contextual link.
16 20
    $class = 'contextual-links-region';
17 21
    if (!empty($this->view->style_plugin->options['row_class'])) {
......
22 26
    }
23 27
  }
24 28

  
25
  function options_form(&$form, &$form_state) {
29
  /**
30
   * {@inheritdoc}
31
   */
32
  public function options_form(&$form, &$form_state) {
26 33
    parent::options_form($form, $form_state);
27 34

  
28 35
    $form['fields']['#description'] = t('Fields to be included as contextual links.');
......
32 39
  /**
33 40
   * Render the contextual fields.
34 41
   */
35
  function render($values) {
42
  public function render($values) {
36 43
    $links = $this->get_links();
37 44
    if (!empty($links)) {
38 45
      $build = array(
......
52 59
      return '';
53 60
    }
54 61
  }
62

  
55 63
}

Formats disponibles : Unified diff