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>',
);
但注意到變化:(
改爲使用用戶配置文件的掛鉤 –