function signup_field_names in Signup 5.2
Same name and namespace in other branches
- 6.2 includes/date.inc \signup_field_names()
- 6 includes/date.inc \signup_field_names()
- 7 includes/date.inc \signup_field_names()
2 calls to signup_field_names()
- signup_date_field_check_config in includes/
date.inc - Check that the date and signup configuration for a node type makes sense.
- _signup_get_date_field_options in includes/
date.inc - Helper function for the date field select to build its options.
File
- includes/
date.inc, line 38 - Shared code required for any site using CCK date fields, regardless of the version of date in use.
Code
function signup_field_names($content_type = NULL) {
$fields = array();
$content_type_info = _content_type_info();
if ($content_type_info['content types'][$content_type]) {
foreach ($content_type_info['content types'][$content_type]['fields'] as $field) {
if (in_array($field['type'], array(
'date',
'datestamp',
))) {
$fields[$field['field_name']] = $field['widget']['label'];
}
}
}
return $fields;
}