function sexybookmarks_sexybookmarks_content_type_edit_form in Share Buttons, Related Posts, Content Analytics - Shareaholic 7
Same name and namespace in other branches
- 7.2 plugins/content_types/sexybookmarks.inc \sexybookmarks_sexybookmarks_content_type_edit_form()
Form callback.
File
- plugins/
content_types/ sexybookmarks.inc, line 40
Code
function sexybookmarks_sexybookmarks_content_type_edit_form($form, &$form_state) {
$options = array(
'' => '- None -',
);
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'),
'#options' => $options,
'#default_value' => isset($form_state['conf']['profile']) ? $form_state['conf']['profile'] : '',
);
return $form;
}