You are here

function delta_build_export in Delta 6

Same name and namespace in other branches
  1. 7 delta.module \delta_build_export()
1 call to delta_build_export()
delta_create_export in ./delta.module

File

./delta.module, line 909
The Delta Theme API is an advanced manipulation of the Theme Settings API to allow for customization/configuration of theme settings based on node types, context, or groups of paths.

Code

function delta_build_export() {
  $overrides_result = db_query("SELECT * FROM {delta_theme_overrides}");
  $data = array(
    'overrides' => array(),
    'templates' => array(),
  );
  while ($delta = db_fetch_object($overrides_result)) {
    $conditions = unserialize($delta->value);
    $data['overrides'][$delta->did] = array(
      'did' => $delta->did,
      'tid' => $delta->tid,
      'name' => $delta->name,
      'system_name' => $delta->system_name,
      'weight' => $delta->weight,
      'theme' => $delta->themet,
      'conditions' => array(
        'nodes' => $conditions['node-types'],
        'contexts' => $conditions['contexts'],
        'paths' => $conditions['paths'],
      ),
    );
  }
  return $data;
}