You are here

function tvi_default_settings in Taxonomy Views Integrator 7

Same name and namespace in other branches
  1. 6 includes/tvi.query.inc \tvi_default_settings()

Return a default setting object.

Parameters

string $type: The type of default settings that we are generating. It can be TVI_TYPE_TERM or TVI_TYPE_VOCAB.

string|int $xid: The identifier of the object for which we are generating these default settings. It can be an integer or and UUID.

Return value

object The TVI default settings.

1 call to tvi_default_settings()
tvi_load_settings in includes/tvi.query.inc
Load a setting from the database or return a default.

File

includes/tvi.query.inc, line 20
Database interface for the tvi module.

Code

function tvi_default_settings($type = TVI_TYPE_TERM, $xid = 0) {
  $settings = new stdClass();
  $settings->type = $type;
  $settings->xid = $xid;
  $settings->view_name = NULL;
  $settings->display = NULL;
  $settings->status = 0;
  $settings->inherit = 0;
  $settings->pass_arguments = 0;
  $settings->is_default = TRUE;
  return $settings;
}