function author_pane_author_pane_content_type_edit_form in Author Pane 6.2
Same name and namespace in other branches
- 6 plugins/content_types/author_pane.inc \author_pane_author_pane_content_type_edit_form()
Returns an edit form for the custom type.
File
- plugins/
content_types/ author_pane.inc, line 52 - This file provides a CTools content type containing the author pane.
Code
function author_pane_author_pane_content_type_edit_form(&$form, &$form_state) {
$conf = $form_state['conf'];
if (module_exists('imagecache')) {
$options = array(
'' => '',
);
$presets = imagecache_presets();
foreach ($presets as $preset) {
$options[$preset['presetname']] = $preset['presetname'];
}
$form['picture_preset'] = array(
'#type' => 'select',
'#title' => t('User picture preset'),
'#options' => $options,
'#description' => t('Imagecache preset to use for user picture. Leave blank to not use this feature.'),
'#default_value' => $conf['picture_preset'],
);
}
$form['caller'] = array(
'#type' => 'textfield',
'#title' => t('Caller'),
'#size' => 50,
'#description' => t('Name of the calling program. This can be picked up during the preprocessing for specific changes. If using this in Advanced Profile Kit, it should be set to "advanced_profile"'),
'#default_value' => $conf['caller'],
);
}