function official_facebook_pixel_settings_form in Official Facebook Pixel 7
Implements hook_admin_settings().
1 string reference to 'official_facebook_pixel_settings_form'
- official_facebook_pixel_menu in ./
official_facebook_pixel.module - Implements hook_menu().
File
- ./
official_facebook_pixel.admin.inc, line 26 - Contains facebook_pixel_settings_form.
Code
function official_facebook_pixel_settings_form($form, &$form_state) {
$options = OfficialFacebookPixelOptions::getInstance();
$form = array();
$form[OfficialFacebookPixelConfig::FORM_PIXEL_KEY] = array(
'#type' => 'textfield',
'#title' => t(OfficialFacebookPixelConfig::FORM_PIXEL_TITLE),
'#description' => t(OfficialFacebookPixelConfig::FORM_PIXEL_DESCRIPTION),
'#required' => TRUE,
'#default_value' => $options
->getPixelId(),
);
$form[OfficialFacebookPixelConfig::FORM_PII_KEY] = array(
'#type' => 'checkbox',
'#title' => t(OfficialFacebookPixelConfig::FORM_PII_TITLE),
'#description' => t(sprintf(OfficialFacebookPixelConfig::FORM_PII_DESCRIPTION, OfficialFacebookPixelConfig::FORM_PII_DESCRIPTION_LINK)),
'#default_value' => $options
->getUsePii(),
);
return system_settings_form($form);
}