function panels_profile_fields_configure in Panels 6.2
Same name and namespace in other branches
- 5.2 content_types/profile_fields.inc \panels_profile_fields_configure()
'Edit' callback for the 'profile fields' content type.
1 string reference to 'panels_profile_fields_configure'
- panels_profile_fields_panels_content_types in content_types/
profile_fields.inc - Callback function to supply a list of content types.
File
- content_types/
profile_fields.inc, line 105
Code
function panels_profile_fields_configure($id, $parents, $conf = array()) {
// Apply defaults
if (empty($conf)) {
$conf = array(
'title' => '',
'category' => '',
'empty' => '',
);
}
$form['category'] = array(
'#type' => 'radios',
'#title' => t('Which category'),
'#options' => _panels_profile_fields_options(),
'#default_value' => $conf['category'],
'#prefix' => '<div class="clear-block no-float">',
'#suffix' => '</div>',
);
$form['empty'] = array(
'#type' => 'textarea',
'#title' => 'Empty text',
'#description' => t('Text to display if category has no data. Note that title will not display unless overridden.'),
'#rows' => 5,
'#default_value' => $conf['empty'],
'#prefix' => '<div class="clear-block no-float">',
'#suffix' => '</div>',
);
return $form;
}