Currently I can't find any configuration options for the adress module. I need to disable / remove the second street field and hte coutry field (or limit it to only 1 country).

Using hook_form_alter is almost impossible: I spend hours trying to get it to work this way. I even tried it through :


function templeta_preprocess_ec_address_user_list(&$variables) {
  module_load_include('inc', 'ec_address', 'ec_address.admin');
  drupal_add_css(drupal_get_path('module', 'ec_address') . '/css/address.css');
  $variables['address_list'] = views_embed_view('ec_address_list');
  $variables['address_form'] = drupal_get_form('ec_address_form', $variables['user_id']);
}

and suplying my own form function. That way I couldn't get the adresses to be saved.

I ended up disabeling the module, much to my disliking.

I hope there is a simple solution that I overlooked somehow.

Comments

remco75’s picture

Small update: i cannot disable the adres module: see this thread

http://drupal.org/node/683410

So for now I'm stuck with a form that I cannot seem to change... this can't be , i'ts drupal ;-)

please advice