tips
Though this is not the correct way todo - but this works fine. Usng this code you can replace your Submit button with Image submit button. <?php
|
|||
My website is powered by Drupal 5.7. Recently i reworked on its frontpage for better readiblity of data. I was trying to remove "Read more" links from frontpage. After analyzing, i found that i could change in the module itself - but this will be overridden once i update my module. I was looking for alternative solution to this - and while searching in Drupal.org forums, i came across I used this code to hide links on frontpage.
|
|||
<?php $node = array('uid' => $user->uid, 'name' => $user->name, 'type' => $type); $form = drupal_retrieve_form($type .'_node_form', $node); drupal_prepare_form($type .'_node_form', $form); // does not returns anything - modifies $form object // print_r($form); // you can check all fields (including CCK ones )in $form object drupal_render_form($type .'_node_form',$form) ( also posted at http://drupal.org/node/151008#comment-842764 )
|
|||
