function sexybookmarks_block_configure in Share Buttons, Related Posts, Content Analytics - Shareaholic 7.2
Same name and namespace in other branches
- 7 includes/block.inc \sexybookmarks_block_configure()
Implements hook_block_configure().
File
- includes/
block.inc, line 29 - Block module integration.
Code
function sexybookmarks_block_configure($delta) {
$form = array();
$options = array();
ctools_include('export');
foreach (ctools_export_crud_load_all('sexybookmarks_profiles') as $profile) {
if (empty($profile->disabled)) {
$options[$profile->name] = $profile->name;
}
}
$form['profile'] = array(
'#type' => 'select',
'#title' => t('SexyBookmarks profile'),
'#empty_value' => '',
'#options' => $options,
'#default_value' => variable_get("sexybookmarks_block_{$delta}_profile", 'default'),
);
return $form;
}