You are here

function certificate_course_node_template_settings in Certificate 6

Same name and namespace in other branches
  1. 8.3 certificate.module \certificate_course_node_template_settings()
  2. 6.2 certificate.module \certificate_course_node_template_settings()
  3. 7.2 certificate.module \certificate_course_node_template_settings()
  4. 3.x certificate.module \certificate_course_node_template_settings()

Quick get per-node template settings.

1 call to certificate_course_node_template_settings()
certificate_nodeapi in ./certificate.module
Implements hook_nodeapi.

File

./certificate.module, line 475
Certificate module.

Code

function certificate_course_node_template_settings($nid) {
  $sql = "SELECT * FROM {certificate_node} WHERE nid = %d";
  $result = db_query($sql, $nid);
  $node_template_settings = array();
  while ($node_template_setting = db_fetch_array($result)) {
    $node_template_settings[$node_template_setting['type']] = $node_template_setting['template'];
  }
  return $node_template_settings;
}