drupal_set_title doesn't work in my case. well... it worked some time ago (i don't remember when it stopped working) but after installing couple (4-6) of modules it stopped working. where else i can override page-title? it really bugs when you see 'Create Add new order' instead of 'Order form'... so i can live with that but it BUGS me every time i go to that page....
function driver_mailer_form_alter(&$form, &$form_state, $form_id) {
global $user;
if (!empty($form['type']['#value']) && $form['type']['#value'] == 'order') {
drupal_set_title(t('Order form'));
}
one more thing, if i do code like this
function driver_mailer_form_alter(&$form, &$form_state, $form_id) {
global $user;
drupal_set_title(t('Order form'));
if (!empty($form['type']['#value']) && $form['type']['#value'] == 'order') {
}
it works but it changes page-titles to all my pages (((
and if its possible i really don't want work with .tpl files (i don't know how to yet), but if thats the only way in my case please provide sort of short tutorial.
THANKS to everyone for help!!!!!
I did try to weight my module... made a file 'driver_mailer.install' and used this code:
<?php
/**
* Implements hook_install().
*/
function driver_mailer_install() {
db_update('system')
->fields(array('weight' => 100))
->condition('name', 'driver_mailer')
->execute();
}
?>
then i turned off my module, flush my caches, and turned my module back... nothing changed... not working.))))
$form['type']['#value']
? – Sithu Feb 5 at 15:11