Történet (history) eltüntetése a felhasználói profilról

Category: 
Snippet

Mindössze néhány sorral a smink template.php-jében eltüntethetjük az ennyi és ennyi ideje regisztrált (történet) szöveget:

function your_theme_name_preprocess_user_profile(&$vars) {
  unset ($vars['profile']['summary']) ;
  $vars['user_profile'] = implode($vars['profile']); 
}

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Internal paths in double quotes, written as "internal:node/99", for example, are replaced with the appropriate absolute URL or relative path.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <del> <img>
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
  • Allowed HTML tags: <a> <blockquote> <br> <cite> <code> <dd> <del> <div> <dl> <dt> <em> <li> <ol> <p> <span> <strong> <ul>
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <bash>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <mysql>, <php>, <python>, <ruby>, <sql>. The supported tag styles are: <foo>, [foo].
  • Each email address will be obfuscated in a human readable fashion or (if JavaScript is enabled) replaced with a spamproof clickable link.
By submitting this form, you accept the Mollom privacy policy.