function eventfinder_host_event() {
$output .= theme('eventfinder_desc', variable_get('eventfinder_host_desc', ''));
foreach (node_get_types() as $type => $name) {
if(node_access('create', $type) && event_is_enabled($type) == 1){
// print drupal_substr($type, 0, 9) . ' - ';
if(drupal_substr($type, 0, 9) == 'flexinode'){
if(user_access('create ' . node_invoke($type, 'node_name') . ' content')){
$output .= '
' . l(t('%module', array('%module' => node_invoke($type, 'node_name'))), 'node/add/'. $type). '
';
$output .= implode("\n", module_invoke_all('help', 'node/add#'. $type));
}
} else {
$output .= '' . l(t('%module', array('%module' => node_invoke($type, 'node_name'))), 'node/add/'. $type). '
';
$output .= implode("\n", module_invoke_all('help', 'node/add#'. $type));
}
}
}
print theme('eventfinder_host', $output);
}
function theme_eventfinder_host($content){
$output = '';
$output .= $content;
$output .= '
';
return $output;
}