You are here

function _sheetnode_template_load in Sheetnode 7

Same name and namespace in other branches
  1. 6 sheetnode.module \_sheetnode_template_load()
  2. 7.2 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_field_ui_field_edit_form_submit in ./sheetnode.module
Submit function for field_ui_field_edit_form form.

File

./sheetnode.module, line 1204
Module file for the sheetnode module.

Code

function _sheetnode_template_load($tid) {
  $template = db_select('sheetnode_template', 's')
    ->fields('s')
    ->condition('tid', $tid, '=')
    ->execute()
    ->fetchAssoc();
  return (object) $template;
}