Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function MYTHEME_form_contact_site_form_alter(&$form, &$form_state, $form_id){
- /* Contact form tárgy mező kitöltés */
- if (isset($_GET['ta'])){
- if (is_numeric($_GET['ta'])){
- $ta_id = $_GET['ta'];
- $ta = node_load($ta_id);
- $form['subject']['#value'] = $ta->title;
- }
- else {
- drupal_set_message(t('Ne turkálj az URL-ben, nem szép dolog.'), 'error');
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement