0
我想一些标记中的template.php为什么我不能添加自定义标记来user_profile
function athens_preprocess_user_profile(&$variables) {
$markup = 'hello';
$variables['elements']['social'] = array(
'#weight' => 0,
'#markup' => '<div class="clearfix"></div><div class="author-social">' . $markup . '</div>',
);
但注意到变化:(
改为使用用户配置文件的挂钩 –