function author_pane_content_type_edit_form in Author Pane 7.2
Returns an edit form for the custom type.
1 string reference to 'author_pane_content_type_edit_form'
- author_pane.inc in plugins/
content_types/ author_pane.inc
File
- plugins/
content_types/ author_pane.inc, line 58
Code
function author_pane_content_type_edit_form($form, &$form_state) {
$conf = $form_state['conf'];
$join_date_options = array();
foreach (system_get_date_types() as $date_type) {
$join_date_options[$date_type['type']] = $date_type['title'];
}
$form['join_date_type'] = array(
'#type' => 'select',
'#title' => t('Join date, date type'),
'#options' => $join_date_options,
'#default_value' => $conf['join_date_type'],
'#description' => t('Select which <a href="@date-type-url">date type</a> to use for displaying the join date.', array(
'@date-type-url' => url('admin/config/regional/date-time'),
)),
);
if (module_exists('image')) {
$options = array(
'' => '',
);
foreach (image_styles() as $style) {
$options[$style['name']] = $style['name'];
}
$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'],
);
return $form;
}