All pastes #98902 Raw Edit

Untitled

public php v1 · immutable
#98902 ·published 2006-07-24 21:52 UTC
rendered paste body
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 .= '<h3>' . l(t('%module', array('%module' => node_invoke($type, 'node_name'))), 'node/add/'. $type). '</h3>';          $output .= implode("\n", module_invoke_all('help', 'node/add#'. $type));        }      } else {        $output .= '<h3>' . l(t('%module', array('%module' => node_invoke($type, 'node_name'))), 'node/add/'. $type). '</h3>';        $output .= implode("\n", module_invoke_all('help', 'node/add#'. $type));      }    }  }  print theme('eventfinder_host', $output);}function theme_eventfinder_host($content){  $output = '<div class="ef_host_event">';  $output .= $content;  $output .= '</div>';  return $output;}