accesibilidad

Accesibilidad bloque de suscripción de SIMPLENEWS

 // En el phptemplate
 
 function phptemplate_radio($element) {
 
  // Create a random number to append to the ID
  //This is required as with e.g. poll mudule, the poll
  // node appears twice resulting in duplicate IDs
 
  $new_rand_no = (mt_rand(10,1000000));
 
  _form_set_class($element, array('form-radio'));
  $output = '<input type="radio" ';
  $output .= 'name="' . $element['#name'] .'" ';
  $output .= 'value="'. $element['#return_value'] .'" ';
  $output .= 'id="'. $element['#id'] . '_' . $element['#return_value'] . $new_rand_no .'" ';
  $output 

Accesibilidad formulario de CONTACTO

// En un módulo, dentro de una función form_alter
 
  if ($form_id == 'contact_mail_page') {
    $form['mail']['#id'] = 'edit-mail-comment';
    $form['submit']['#id'] = 'edit-submit-comment';
 
    $form['name']['#default_value'] = 'Nombre';
    $form['subject']['#default_value'] = 'Asunto';
    $form['message']['#default_value'] = 'Mensaje';
    $form['mail']['#default_value'] = 'E-mail';
    $form['cid']['#default_value'] = 0;
}

Accesibilidad tablas de los filtros del módulo VIEWS

//En el template.php
 
function phptemplate_views_filters($form) {
  $view = $form['view']['#value'];
 
  foreach ($view->exposed_filter as $count => $expose) {
    $row[] = drupal_render($form["op$count"]) . drupal_render($form["filter$count"]);
    $label[] = $expose['label'];
  }
  $row[] = drupal_render($form['submit']);
  $label... Leer mas

Accesibilidad tablas del módulo EVENT

// en el template.php
 
function phptemplate_event_calendar_month($op, $header, $rows, $attributes = array(), $caption = NULL) {
  $attributes['summary'] = 'Calendar';  
  $output = theme("table", $header, $rows, $attributes, $caption);
  return '<div class="event-calendar"><div class="month-view">'. $output ."</div></div>\n";
}

Accesibilidad bloque search

function nombremodulo_form_alter($formid, &$form) {
 if ($formid == 'search_block_form'){
  $form['search_block_form_keys']['#title'] = 'Buscar';
 }
}

Distribuir contenido
Diseño y desarrollo INVESTIC con DRUPAL