function tripal_save_title_format
3.x tripal.entities.api.inc | tripal_save_title_format($entity, $format) |
Save Page Title Format for a given Tripal Entity Type.
Parameters
TripalBundle $entity: The Entity object for the Tripal Bundle the title format is for.
string $format: The pattern to be used when generating entity titles for the above type.
Related topics
2 calls to tripal_save_title_format()
- tripal_get_title_format in tripal/
api/ tripal.entities.api.inc - Get Page Title Format for a given Tripal Entity Type.
- tripal_tripal_bundle_form_submit in tripal/
includes/ TripalBundleUIController.inc - Submit: Tripal content type edit form.
File
- tripal/
api/ tripal.entities.api.inc, line 943 - Provides an application programming interface (API) for working with TripalEntity content types (bundles) and their entities.
Code
function tripal_save_title_format($entity, $format) {
return tripal_set_bundle_variable('title_format', $entity->id, $format);
}