You are here

function delta_get_layout_data in Delta 7.2

delta_get_layout_data function.

@access public

@todo Make the SQL SELECT statement conform to the PDO

Parameters

mixed $layout:

Return value

void

3 calls to delta_get_layout_data()
delta_layout_configure in ./delta_ui.admin.inc
delta_template_configure function.
delta_layout_delete in ./delta_ui.admin.inc
delta_template_configure function.
delta_layout_edit in ./delta_ui.admin.inc
Form callback for creating and editing theme settings templates

File

./delta_ui.admin.inc, line 128
Delta UI functionality

Code

function delta_get_layout_data($layout) {
  $sql = "\n      SELECT dt.name, dt.system_name, dt.tid, dt.data, dt.theme\n      FROM {delta_theme_settings} dt\n      WHERE dt.system_name = :layout\n      LIMIT 1";
  $result = db_query($sql, array(
    ':layout' => $layout,
  ), array(
    'fetch' => PDO::FETCH_ASSOC,
  ));
  foreach ($result as $item) {
    $data = $item;
  }
  return $data;
}