You are here

function omega_tools_write_info_file in Omega Tools 7.3

@todo

3 calls to omega_tools_write_info_file()
omega_tools_subtheme_create in ./omega_tools.module
@todo
omega_tools_subtheme_wizard_finish in includes/omega_tools.wizard.inc
@todo
omega_tools_theme_export_submit in includes/omega_tools.admin.inc
@todo

File

./omega_tools.module, line 366

Code

function omega_tools_write_info_file($name, $info, $destination = NULL) {
  $destination = isset($destination) ? $destination : drupal_get_path('theme', $name);
  if (!empty($destination)) {
    return file_unmanaged_save_data(omega_tools_build_info_file($info), $destination . '/' . $name . '.info', FILE_EXISTS_REPLACE);
  }
  return FALSE;
}