materio_translator.module 924 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * Implements hook_init().
  4. */
  5. // function materio_translator_init() {
  6. // drupal_add_js(drupal_get_path('module', 'materio_translator').'/js/materio_translator.js');
  7. // }
  8. /**
  9. * Implements hook_permission().
  10. */
  11. // function materio_translator_permission() {
  12. // $perms = array(
  13. // 'add showroom localisation' => array(
  14. // 'title' => t('add showroom localisation'),
  15. // 'description' => t('add showroom localisation'),
  16. // ),
  17. // );
  18. //
  19. // return $perms;
  20. // }
  21. /**
  22. * Implements hook_form_alter().
  23. */
  24. function materio_translator_form_alter(&$form, &$form_state, $form_id) {
  25. // dsm($form_id);
  26. if( $form_id == "materiau_node_form" ){
  27. dsm($form);
  28. // $form['account']['pass']['#type'] = 'password';
  29. // $form['account']['pass']['#title'] = t('Password');
  30. //
  31. // $form['actions']['#type'] = "container";
  32. // $form['actions']['submit']['#value'] = t('Join');
  33. }
  34. }