You are here

function ckeditor_profile_features_export_render in CKEditor - WYSIWYG HTML editor 7

Same name and namespace in other branches
  1. 6 includes/ckeditor.features.inc \ckeditor_profile_features_export_render()

Implementation of hook_features_export_render()

File

includes/ckeditor.features.inc, line 72
CKEditor - The text editor for the Internet - http://ckeditor.com Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.

Code

function ckeditor_profile_features_export_render($module_name, $data) {
  $profiles = array();
  $roles = user_roles();
  foreach ($data as $name) {
    $profile = (array) ckeditor_profile_load($name, TRUE, FALSE);
    $profiles[$name] = $profile;
  }
  $code = '  $data = ' . features_var_export($profiles, '  ') . ';' . PHP_EOL;
  $code .= '  return $data;';
  return array(
    'ckeditor_profile_defaults' => $code,
  );
}