commited custom modules for showroom release
This commit is contained in:
@@ -26,15 +26,36 @@
|
||||
/**
|
||||
* 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');
|
||||
function DISABLED_materio_translator_form_alter(&$form, &$form_state, $form_id) {
|
||||
// act only on node edit form
|
||||
if(isset($form['#node_edit_form'])){
|
||||
// dsm($form_id, 'form_id');
|
||||
// dsm($form, 'form');
|
||||
// dsm($form_state, 'form_state');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_field_access().
|
||||
*/
|
||||
function DISABLED_materio_translator_field_access($op, $field, $entity_type, $entity, $account) {
|
||||
// dsm($op,'op');
|
||||
// dsm($entity_type,'entity_type');
|
||||
// if($op == "edit" && $entity_type == 'node'){
|
||||
// if($field['translatable'] == 0){
|
||||
// if($field['field_permissions']['type'] == FIELD_PERMISSIONS_CUSTOM){
|
||||
// dsm($field,$field['field_name']);
|
||||
// // dsm($entity,'entity');
|
||||
// // dsm($account,'account');
|
||||
//
|
||||
// // check if field permissions are handled by field_permissions module
|
||||
//
|
||||
// // return FALSE;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user