function _signup_date_field_element in Signup 6
Same name and namespace in other branches
- 5.2 includes/date.inc \_signup_date_field_element()
- 6.2 includes/date.inc \_signup_date_field_element()
- 7 includes/date.inc \_signup_date_field_element()
Create the FAPI form element for the signup date field.
Parameters
$type: The node type to generate the form element for.
Return value
FAPI form array for the signup date field element.
See also
_signup_date_field_form_alter()
_signup_date_alter_node_type_form()
2 calls to _signup_date_field_element()
- signup_form_content_field_edit_form_alter in includes/
date.inc - Alter the form for configuring CCK date fields on node types.
- _signup_date_alter_node_type_form in includes/
date.inc - Alter the node type form to add a setting to select the signup date field.
File
- includes/
date.inc, line 181 - Code to support using CCK date fields for time-based signup functionality.
Code
function _signup_date_field_element($type) {
return array(
'#type' => 'select',
'#title' => t('Date field to use with signup'),
'#options' => _signup_get_date_field_options($type),
'#default_value' => variable_get('signup_date_field_' . $type, 0),
'#description' => t('Select the date field of this content type to use for signup time-based functionality, such as automatically closing signups when the start time has passed and sending reminder emails. Select "%none" to not use a date field for signup functionality at all.', array(
'%none' => t('None'),
)),
);
}