Les paramètres de thème ne sont pas enregistrés
-
31-10-2019 - |
Question
J'ai créé des paramètres personnalisés pour mon thème pour stocker les e-mails, l'URL FB, l'URL Twitter et l'URL G +. Tout arrive correctement, mais les paramètres ne sont pas enregistrés. Je n'ai aucune idée de ce qui ne va pas. Tous les code et captures d'écran sont ci-dessous.
.info Fichier Contenu
settings[z_email] = mail@zed.com
settings[z_facebook] = fb/url
settings[z_twitter] = twitter/url
settings[z_gplus] = gplus/url
thèmes-sets.php contenu du fichier
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 page de définition du thème:
Pas de solution correcte
Licencié sous: CC-BY-SA avec attribution
Non affilié à drupal.stackexchange