function sharerich_get_service_content in Sharerich 7.3
Same name and namespace in other branches
- 7 sharerich.module \sharerich_get_service_content()
- 7.2 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 326
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);
}