You are here

function sharerich_get_service_content in Sharerich 7.2

Same name and namespace in other branches
  1. 7.3 sharerich.module \sharerich_get_service_content()
  2. 7 sharerich.module \sharerich_get_service_content()

Helper to get the service content from file or ctools object.

3 calls to sharerich_get_service_content()
sharerich_ctools_export_ui_form in plugins/export_ui/sharerich_ctools_export_ui.inc
Define the preset add/edit form.
sharerich_install in ./sharerich.install
Implements hook_install().
sharerich_update_7200 in ./sharerich.install
Sharerich 2.x upgrade.

File

./sharerich.module, line 327

Code

function sharerich_get_service_content($service_name, $set_name = '') {
  $sharerich_set = sharerich_set_load($set_name);
  if (!empty($sharerich_set->services[$service_name]['markup'])) {
    return $sharerich_set->services[$service_name]['markup'];
  }

  // Load services from templates.
  return sharerich_load_service($service_name);
}