function classified_classified_expires_content_type_edit_form in Classified Ads 7.3
Same name and namespace in other branches
- 6.3 plugins/content_types/classified_expires.inc \classified_classified_expires_content_type_edit_form()
Implements hook_PLUGIN_content_type_edit_form().
Returns an edit form for custom type settings.
File
- plugins/
content_types/ classified_expires.inc, line 114 - CTools content_type plugin, displaying a Classified Ad expiration info.
Code
function classified_classified_expires_content_type_edit_form($form, &$form_state) {
$conf = $form_state['conf'];
$form['link'] = array(
'#title' => t('Link'),
'#type' => 'checkbox',
'#default_value' => $conf['link'],
'#description' => t('Check here to make the Ad expiration link to the node.'),
);
$form['format'] = array(
'#title' => t('Format'),
'#type' => 'radios',
'#default_value' => $conf['format'],
'#options' => _classified_classified_expires_option_values(),
'#description' => t('Choose an expiration format.'),
);
return $form;
}