Pregunta

Creé configuraciones personalizadas para mi tema para almacenar correo electrónico, URL FB, URL de Twitter y URL G+. Todo viene correctamente, pero la configuración no se guardan. No tengo idea de qué pasa. Todo el código y las capturas de pantalla están a continuación.

.info contenido del archivo

settings[z_email] = mail@zed.com
settings[z_facebook] = fb/url
settings[z_twitter] = twitter/url
settings[z_gplus] = gplus/url

contenido de archivo de sets.php.php

function z_form_system_theme_settings_alter(&$form, $form_state) {
  $form['z_email'] = array(
    '#type'          => 'textfield',
    '#title'         => t('Email'),
    '#default_value' => theme_get_setting('mail@zealind.com'),
    '#description'   => t("Global Email Id for ZealInd site."),
  );

  $form['z_facebook'] = array(
    '#type'          => 'textfield',
    '#title'         => t('Facebook'),
    '#default_value' => theme_get_setting(''),
    '#description'   => t("Facebook Url."),
  );

  $form['z_twitter'] = array(
    '#type'          => 'textfield',
    '#title'         => t('Twitter'),
    '#default_value' => theme_get_setting(''),
    '#description'   => t("Twitter Url."),
  );

  $form['z_gplus'] = array(
    '#type'          => 'textfield',
    '#title'         => t('Google+'),
    '#default_value' => theme_get_setting(''),
    '#description'   => t("Google+ Url."),
  );



}

La página de configuración del tema:

enter image description here

No hay solución correcta

Licenciado bajo: CC-BY-SA con atribución
No afiliado a drupal.stackexchange
scroll top