Posted by anis.khan on August 30, 2011 at 5:58am
3 followers
Jump to:
| Project: | Signup |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Hi,
I get a blank when trying to use %node_start_time in a confirmation or reminder email. However, [node:field-date] works (where field_date is the machine name).
Comments
#1
Yup,
I get the same. I'm not sure how I would use [node:field-date] - I am using that field in the content type. Any ideas anyone?
#2
56 /**57 * Determine which scheduler backend to use for the given node type.
58 *
59 * @param $type
60 * Machine-readable name of the node type to test.
61 *
62 * @return
63 * 'event' to use the event.module, 'date' for the date.module, or 'none' if
64 * the node type is untimed.
65 */
66 function _signup_get_node_type_scheduler($type) {
67 if (module_exists('event') && variable_get('event_nodeapi_' . $type, 'never') != 'never') {
68 return 'event';
69 }
70 if (module_exists('date')) {
71 $date_field = variable_get('signup_date_field_' . $type, 0);
72 if (!empty($date_field) && $date_field != 'none') {
73 return 'date';
74 }
75 }
76 return 'none';
77 }
http://drupalcode.org/project/signup.git/blob/2d37f0e:/includes/scheduler.inc#l66
Are you missed the "event" or "date" module? Try to debug here, and this should be able to solve your problem.