function signup_date_check_node_types in Signup 6.2
Same name and namespace in other branches
- 5.2 includes/date.inc \signup_date_check_node_types()
- 6 includes/date.inc \signup_date_check_node_types()
- 7 includes/date.inc \signup_date_check_node_types()
Check the signup and date configuration on node types depending on the URL.
This function is invoked from signup_help() so that we can check the configuration of any signup-enabled node types to ensure that the CCK date field and signup settings make sense.
Parameters
$type: The 4th element in the URL which specifies which node type is currently being configured. If this is empty, it means we're at the node type overview listing and we should test all node types.
See also
signup_date_field_check_config()
1 call to signup_date_check_node_types()
- signup_help in ./
signup.module - Implementation of hook_help().
1 string reference to 'signup_date_check_node_types'
- signup_help in ./
signup.module - Implementation of hook_help().
File
- includes/
date.inc, line 206 - Code to support using CCK date fields for time-based signup functionality.
Code
function signup_date_check_node_types($type = NULL) {
$names = node_get_types('names');
if (!empty($type)) {
signup_date_field_check_config($type, $names[$type]);
}
else {
foreach ($names as $type => $name) {
signup_date_field_check_config($type, $name);
}
}
}