Projet

Général

Profil

Révision 4cfd8be6

Ajouté par Assos Assos il y a environ 9 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/webform/webform.module
1734 1734
  // This is a webform node block.
1735 1735
  $node->webform_block = TRUE;
1736 1736

  
1737
  // Use the node title for the block title.
1738
  $subject = $node->title;
1739 1737

  
1740 1738
  // If not displaying pages in the block, set the #action property on the form.
1741 1739
  if ($settings['pages_block']) {
......
1761 1759
    $content['#contextual_links']['node'] = array('node', array($node->nid));
1762 1760
  }
1763 1761

  
1764
  // Create the block.
1762
  // Create the block, using the node title for the block title.
1765 1763
  // Note that we render the content immediately here rather than passing back
1766 1764
  // a renderable so that if the block is empty it is hidden.
1767 1765
  $block = array(
1768
    'subject' => $subject,
1766
    'subject' => check_plain($node->title),
1769 1767
    'content' => drupal_render($content),
1770 1768
  );
1771 1769
  return $block;

Formats disponibles : Unified diff