You are here

function _sheetnode_template_load in Sheetnode 6

Same name and namespace in other branches
  1. 7.2 sheetnode.module \_sheetnode_template_load()
  2. 7 sheetnode.module \_sheetnode_template_load()

Helper function to load a sheetnode template.

2 calls to _sheetnode_template_load()
sheetnode_import_template_submit in ./sheetnode.module
Submit function for sheetnode_import_template form.
_sheetnode_content_field_edit_form_submit in ./sheetnode.module
Submit function for content_field_edit_form form.

File

./sheetnode.module, line 1094

Code

function _sheetnode_template_load($tid) {
  $template = db_fetch_object(db_query("SELECT * FROM {sheetnode_template} WHERE tid=%d", $tid));
  return $template;
}