Drupal 7 主題定制user login form
第一步诡延,打開主題目錄下的template.php文件钠糊。
function yourthemename_theme() {
$items = array();
// create custom user-login.tpl.php
$items['user_login'] = array(
'render element' => 'form',
'path' => drupal_get_path('theme', 'yourthemename') . '/templates',
'template' => 'user-login',
'preprocess functions' => array('yourthemename_preprocess_user_login'
),
);
return $items;
}
第二步砍艾,創(chuàng)建templates目錄及其目錄下的user-login.tpl.php悯衬。
(...)Read the rest of Drupal 7 自定義登錄頁模板 (31 words)