function service_links_block_configure in Service links 7.2
Implements hook_block_configure().
File
- ./
service_links.module, line 236 - Adds social network links to the content.
Code
function service_links_block_configure($delta = '') {
$form = array();
switch ($delta) {
case 'service_links':
$form['service_links_block_style'] = array(
'#type' => 'select',
'#title' => t('Style'),
'#description' => t('How the service links will appear in the block.'),
'#default_value' => variable_get('service_links_block_style', SERVICE_LINKS_STYLE_IMAGE_AND_TEXT),
'#options' => array(
SERVICE_LINKS_STYLE_TEXT => t('Text'),
SERVICE_LINKS_STYLE_IMAGE => t('Image'),
SERVICE_LINKS_STYLE_IMAGE_AND_TEXT => t('Image and Text'),
),
);
break;
case 'service_links_fisheye':
$form['service_links_path_fisheye'] = array(
'#type' => 'textfield',
'#title' => t('Alternative icon folder'),
'#size' => 60,
'#description' => t('If you have alternative icons write here the path without trailing slash'),
'#default_value' => service_links_expand_path(NULL, 'fisheye'),
);
break;
case 'service_links_not_node':
$form['service_links_block_not_node_style'] = array(
'#type' => 'select',
'#title' => t('Style'),
'#description' => t('How the service links will appear in the block.'),
'#default_value' => variable_get('service_links_block_not_node_style', SERVICE_LINKS_STYLE_IMAGE_AND_TEXT),
'#options' => array(
SERVICE_LINKS_STYLE_TEXT => t('Text'),
SERVICE_LINKS_STYLE_IMAGE => t('Image'),
SERVICE_LINKS_STYLE_IMAGE_AND_TEXT => t('Image and Text'),
),
);
$form['service_links_block_not_node_front'] = array(
'#type' => 'checkbox',
'#title' => t('Link always to the front page'),
'#description' => t('If selected the services will link always to the front page %front.', array(
'%front' => url('<front>', array(
'absolute' => TRUE,
)),
)),
'#default_value' => variable_get('service_links_block_not_node_front', FALSE),
);
break;
}
return $form;
}