41 lines
924 B
Plaintext
41 lines
924 B
Plaintext
<?php
|
|
|
|
|
|
/**
|
|
* Implements hook_init().
|
|
*/
|
|
// function materio_translator_init() {
|
|
// drupal_add_js(drupal_get_path('module', 'materio_translator').'/js/materio_translator.js');
|
|
// }
|
|
|
|
|
|
/**
|
|
* Implements hook_permission().
|
|
*/
|
|
// function materio_translator_permission() {
|
|
// $perms = array(
|
|
// 'add showroom localisation' => array(
|
|
// 'title' => t('add showroom localisation'),
|
|
// 'description' => t('add showroom localisation'),
|
|
// ),
|
|
// );
|
|
//
|
|
// return $perms;
|
|
// }
|
|
|
|
/**
|
|
* Implements hook_form_alter().
|
|
*/
|
|
function materio_translator_form_alter(&$form, &$form_state, $form_id) {
|
|
// dsm($form_id);
|
|
if( $form_id == "materiau_node_form" ){
|
|
dsm($form);
|
|
// $form['account']['pass']['#type'] = 'password';
|
|
// $form['account']['pass']['#title'] = t('Password');
|
|
//
|
|
// $form['actions']['#type'] = "container";
|
|
// $form['actions']['submit']['#value'] = t('Join');
|
|
}
|
|
|
|
}
|