반응형



다음 위치에  node.module 의      $variables['display_submitted'] = 값을 FALSE; 로 수정하면 됩니다.


위치 : /var/www/html/070uplus/contact/modules/node


  // Display post information only on certain node types.

  if (variable_get('node_submitted_' . $node->type, TRUE)) {

    $variables['display_submitted'] = FALSE;

    $variables['submitted'] = t('Submitted by !username on !datetime', array('!$

    $variables['user_picture'] = theme_get_setting('toggle_node_user_picture') $

  }

  else {                 

    $variables['display_submitted'] = FALSE;

    $variables['submitted'] = '';

    $variables['user_picture'] = '';





출처 : https://www.drupal.org/node/1193888


changing 1st occurence of
$variables['display_submitted'] = TRUE;
to
$variables['display_submitted'] = FALSE;
in
drupal7/modules/node/node.module
as shown below works for me.

  // Display post information only on certain node types.
  if (variable_get('node_submitted_' . $node->type, TRUE)) {
    //$variables['display_submitted'] = TRUE;
    $variables['display_submitted'] = FALSE;
    $variables['submitted'] = t('Submitted by !username on !datetime', array('!username' => $variables['name'], '!datetime' => $variables['date']));
    $variables['user_picture'] = theme_get_setting('toggle_node_user_picture') ? theme('user_picture', array('account' => $node)) : '';
  }
  else {
    $variables['display_submitted'] = FALSE;
    $variables['submitted'] = '';
    $variables['user_picture'] = '';
  }

or if leave as TRUE can change what is printed by altering the

$variables['submitted'] = t('Submitted by !username on !datetime', array('!username' => $variables['name'], '!datetime' => $variables['date']));

line.


+ Recent posts