Projet

Général

Profil

Révision c304a780

Ajouté par Assos Assos il y a environ 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/ctools/plugins/content_types/node_context/node_author.inc
1 1
<?php
2 2

  
3 3
/**
4
 * @file
4 5
 * Plugins are described by creating a $plugin array which will be used
5 6
 * by the system that includes this file.
6 7
 */
8

  
7 9
$plugin = array(
8 10
  'single' => TRUE,
9 11
  'title' => t('Node author'),
......
29 31
  $user = user_load($node->uid);
30 32

  
31 33
  // Build the content type block.
32
  $block = new stdClass();
34
  $block          = new stdClass();
33 35
  $block->module  = 'node_author';
34 36
  $block->title   = t('Author');
35 37
  $block->content = !empty($conf['link']) ? theme('username', array('account' => $user, 'link_path' => 'user/' . $node->uid)) : check_plain(format_username($node));

Formats disponibles : Unified diff