Помогите пожалуйста совместить 2 функции в одну в template.php, ибо по отдельности они не хотят работать. Одна функция позволяте темизировать форму логина, а другая форму регистрации:
<?php
function mytheme_theme(){
return array(
'user_login_block' => array(
'template' => 'user-login-block',
'arguments' => array('form' => NULL),
)
);
}
function
mytheme_theme(){
return array(
'user_register' => array(
'arguments' => array('form' => NULL),
'template' => 'user-register', // this is the name of the template
)
);
}
?>
Комментарии
Примерно так:
function mytheme_theme(){
return array(
'user_login_block' => array(
'template' => 'user-login-block',
'arguments' => array('form' => NULL),
),
'user_register' => array(
'arguments' => array('form' => NULL),
'template' => 'user-register', // this is the name of the template
)
);
}
}
?>
Аригатоу гозаймаз, все работает
<?php
function betpebet_theme(){
return array(
'user_login_block' => array(
'template' => 'user-login-block',
'arguments' => array('form' => NULL),
),
'user_register' => array(
'arguments' => array('form' => NULL),
'template' => 'user-register', // this is the name of the template
)
);
}
?>
Не за что.
[Решено] ставим в заголовок темы.