You are here

function delta_ancestors in Delta 7.3

@todo

2 calls to delta_ancestors()
_delta_ui_ancestors_names in delta_ui/export_ui/delta_export_ui.class.php
@todo
_delta_ui_options_parents in delta_ui/export_ui/delta_export_ui.class.php
@todo

File

./delta.module, line 224
Provide contextual theme settings via context module

Code

function delta_ancestors($name) {
  $ancestors = array();
  if ($template = delta_load($name)) {
    $ancestors[$template->machine_name] = $template;
    if (!empty($template->parent)) {
      $ancestors = array_merge($ancestors, delta_ancestors($template->parent));
    }
  }
  return $ancestors;
}