Core Hooks Reference

Table Of Contents


  Admin Login

These hooks are only triggered from the login page for the admin console.

  Core::LoginFailed

Called from within the login page, after a user failed to enter valid credentials.

Related Event: Core::LoginFailed

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • user - (string)

    The username provided in the login form.

  Core::LoginPre

Called immediately prior to a login to the admin console.

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • user - (string)

    The username provided in the login form.

  Core::LoginPost

Called immediately after a successful login to the admin console.

Related Event: Core::LoginPost

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • user - (string)

    The username provided in the login form.

  Core::LogoutPre

Called immediately prior to a logout from the admin core.

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • uid - (int)

    The id of the admin user who is logging out.

  • username - (string)

    The username provided in the lost password form.

  Core::LogoutPost

Called immediately after a logout from the admin core.

Related Event: Core::LogoutPost

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • uid - (int)

    The id of the admin user who is logging out.

  • username - (string)

    The username provided in the lost password form.

  Core::LostPassword

Called from within the login page, when a user has submitted the lost password form, but prior to the recover email being sent.

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • username - (string)

    The username provided in the lost password form.

  Core::LostPasswordReset

Called after a user has successfully completed the lost password functionality.

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • uid - (int)

    The id of the admin user whos password has been reset.

  • username - (string)

    The username provided in the lost password form.

  • ip - (string)

    The IP address of the user completing the requst.


  Admin Requests

Hooks triggred by the CMSMS Core for admin requests.

  admin_add_footertext

Called in admin requests to allow loaded modules to add text to the body of the rendered output, directly before the closing tag.

Parameters: None

Returns: (string) - A single string of html content to add to the bottom of the rendered page.


  Admin Users and Groups

Hooks related to the management of admin users and groups.

These hooks are only triggered from the admin console when maniuplating admin user accounts or groups.

  Core::AddUserPre

Called immiediately before a new admin user object is saved to the database.

Related Event: Core::AddUserPre

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • user - (User reference) - modifiable

    A reference to the user object that will be saved.

  Core::AddUserPost

Called immiediately after a new admin user object is saved to the database.

Related Event: Core::AddUserPost

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • user - (User reference) - modifiable

    A reference to the user object that has been saved.

  Core::EditUserPre

Called immiediately before an existing admin user object is saved to the database.

Related Event: Core::EditUserPre

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • user - (User reference) - modifiable

    A reference to the user object that will be saved.

  Core::EditUserPost

Called immiediately after an existing admin user object is saved to the database.

Related Event: Core::EditUserPost

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • user - (User reference) - modifiable

    A reference to the user object that has been saved.

  Core::DeleteUserPre

Called immiediately before an existing admin user object is removed from the database.

Related Event: Core::DeleteUserPre

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • user - (User reference) - modifiable

    A reference to the user object that will be removed.

  Core::DeleteUserPost

Called immiediately after an existing admin user object is removed the database.

Related Event: Core::DeleteUserPost

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • user - (User reference) - modifiable

    A reference to the user object that has been removed.

  Core::AddGroupPre

Called immiediately before a new admin group object is added to the database.

Related Event: Core::AddGroupPre

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • group - (Group reference) - modifiable

    A reference to the group object that will be saved.

  Core::AddGroupPost

Called immiediately after a new admin group object is added to the database.

Related Event: Core::AddGroupPost

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • group - (Group reference) - modifiable

    A reference to the group object that has been saved.

  Core::EditGroupPre

Called immiediately before an existing admin group object is saved to the database.

Related Event: Core::EditGroupPre

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • group - (Group reference) - modifiable

    A reference to the group object that will be saved.

  Core::EditGroupPost

Called immiediately after an existing admin group object is saved to the database.

Related Event: Core::EditGroupPost

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • group - (Group reference) - modifiable

    A reference to the group object that has been saved.

  Core::DeleteGroupPre

Called immiediately before an existing admin group object is removed from the database.

Related Event: Core::DeleteGroupPre

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • group - (Group reference) - modifiable

    A reference to the group object that will be removed.

  Core::DeleteGroupPost

Called immiediately after an existing admin group object is removed the database.

Related Event: Core::DeleteGroupPost

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • group - (Group reference) - modifiable

    A reference to the group object that has been removed.

  Core::ChangeGroupAssignPre

Called immidiately before group assignments are saved to the database.

Related Event: Core::ChangeGroupAssignPre

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • group - (Group reference) - modifiable

    A reference to the related group object. Note the group is not saved to the database after this event.

  • users - (User array)

    An array of the users that are currently in the specified group.

  Core::ChangeGroupAssignPost

Called immediately after group assignments are saved to the database.

Related Event: Core::ChangeGroupAssignPost

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • group - (Group reference) - modifiable

    A reference to the related group object. Note the group is not saved to the database after this event.

  • users - (User array)

    An array of the users that are now in the specified group.

  localizeperm

Called when building the permission list to allow localizing the name of a permission.

Parameters:

  • (string)

    A permission name to be localized.

Returns: (string) - A localized permission name.

Example:


      // place this in a module's InitializeAdmin method.
      \CMSMS\HookManager::add_hook('localizeperm',function($in){
          if( $in == 'my perm' ) return $this->Lang('perm_'.$in);
      });
     

  getperminfo

Called when building the permission list to allow retrieving a localized information string for a permission.

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • (string)

    A permission name to be localized.

Returns: (string) - A localized information string.


  Compiling and Rendering

Hooks used for generating HTML code, typically from smarty or other templates.

These hooks typically only occur on frontend requests.

  Core::StylesheetPreCompile

Triggered before a stylesheet is compiled.

Related Event: Core::StylesheetPreCompile

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • stylesheet - (string) - modifiable

    The contents of the template before compiling.

  Core::ContentPreCompile

Triggered before a content block is compiled.

Related Event: Core::ContentPreCompile

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • content - (string) - modifiable

    The contents of the content block before compiling.

  Core::TemplatePreCompile

Triggered before any other template is compiled.

Related Event: Core::TemplatePreCompile

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • template - (string) - modifiable

    The contents of the template before compiling.

  • type - (string)

    The type of template being compiled.

  Core::SmartyPreCompile

Triggered before any template is compiled, but after the above compilation events.

Related Event: Core::SmartyPreCompile

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • template - (string) - modifiable

    The contents of the template before compiling.

  Core::StylesheetPostCompile

Triggered after a stylesheet is compiled.

Related Event: Core::StylesheetPostCompile

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • stylesheet - (string) - modifiable

    The contents of the template after compiling.

  Core::ContentPostCompile

Triggered after a content block is compiled.

Related Event: Core::ContentPostCompile

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • content - (string) - modifiable

    The contents of the content block after compiling.

  Core::TemplatePostCompile

Triggered after any other template is compiled.

Related Event: Core::TemplatePostCompile

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • template - (string) - modifiable

    The contents of the template after compiling.

  • type - (string)

    The type of template being compiled.

  Core::SmartyPostCompile

Triggered after any template is compiled, and after the above compilation events.

Related Event: Core::SmartyPostCompile

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • template - (string) - modifiable

    The contents of the template after compiling.

  metadata_prerender

Triggered by the {metadata} plugin, before any output is generated.

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • content_id - (int)

    The id of the content page being rendered.

  • showbase - (boolean reference)

    Whether or not to include the base href tag.

  • html - (string reference) - modifiable

    The content to render.

  metadata_postrender

Triggered by the {ldelim}metadata} plugin, after output is generated.

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • content_id - (int)

    The id of the content page being rendered.

  • html - (string reference) - modifiable

    The content to render.

  Core::ContentPreRender

Called before page rendering begins.

Related Event: Core::ContentPreRender

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • content - (ContentBase reference) - modifiable

    The content object being referenced.

  Core::ContentPostRender

Called after page rendering is complete.

Related Event: Core::ContentPostRender

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • content - (ContentBase reference) - modifiable

    The content object being referenced.

  Core::PageTopPreRender

Called before rendering (including compiling) of the top portion of the template.

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • content - (ContentBase reference) - modifiable

    The content object being referenced.

  • html - (string reference) - modifiable

    The html to be rendered

  Core::PageTopPostRender

Called afteer rendering (including compiling) of the top portion of the template.

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • content - (ContentBase reference) - modifiable

    The content object being referenced.

  • html - (string reference) - modifiable

    The html to be rendered

  Core::PageBodyPreRender

Called before rendering (including compiling) of the body portion of the template.

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • content - (ContentBase reference) - modifiable

    The content object being referenced.

  • html - (string reference) - modifiable

    The html to be rendered

  Core::PageBodyPostRender

Called after rendering (including compiling) of the body portion of the template.

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • content - (ContentBase reference) - modifiable

    The content object being referenced.

  • html - (string reference) - modifiable

    The html to be rendered

  Core::PageHeadPreRender

Called before rendering (including compiling) of the head portion of the template.

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • content - (ContentBase reference) - modifiable

    The content object being referenced.

  • html - (string reference) - modifiable

    The html to be rendered

  Core::PageHeadPostRender

Called afteer rendering (including compiling) of the head portion of the template.

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • content - (ContentBase reference) - modifiable

    The content object being referenced.

  • html - (string reference) - modifiable

    The html to be rendered


  Content

  Core::ContentEditPre

Triggered before a content object is saved to the database. This event is sent for both new content objects, and existing content objects.

Related Event: Core::ContentEditPre

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • content - (ContentObject) - modifiable

    A reference to the content object about to be saved.

  Core::ContentEditPost

Triggered after a content object is saved to the database. This event is sent for both new content objects, and existing content objects.

Related Event: Core::ContentEditPost

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • content - (ContentObject) - modifiable

    A reference to the content object that was just saved.

Example:


      // place this in a module's InitializeAdmin method.
      \CMSMS\HookManager::add_hook('Core::ContentEditPost',function($params){
          $params['content'] .= '<!-- a hidden comment -->';
      ));
     

  Core::ContentDeletePre

Triggered before a content object is removed from the database.

Related Event: Core::ContentDeletePre

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • content - (ContentObject) - modifiable

    A reference to the content object about to be removed.

  Core::ContentDeletePost

Triggered after a content object is removed from the database.

Related Event: Core::ContentDeletePre

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • content - (ContentObject) - modifiable

    A reference to the content object that has been removed.


  File Manager Module

Hooks triggred by the File Manager.

  FileManager::OnFileDeleted

Called immediately after a file is deleted from the filesystem.

Related Event: FileManager::OnFileDeleted

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • file - (string)

    The name of the file uploaded.

  FileManager::OnFileUploaded

Called immediately after a file has been uploaded to the filesystem.

Related Event: FileManager::OnFileUploaded

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • file - (string)

    The complete path of the file uploaded.

  • thumb - (string)

    If create thumbnails is enabled, and the uploaded file is an image, then this variable will contain the complete path to the generated thumbnail.


  Localization

  localizeperm

Called when building the permission list to allow localizing the name of a permission.

Parameters:

  • (string)

    A permission name to be localized.

Returns: (string) - A localized permission name.

Example:


      // place this in a module's InitializeAdmin method.
      \CMSMS\HookManager::add_hook('localizeperm',function($in){
          if( $in == 'my perm' ) return $this->Lang('perm_'.$in);
      });
     

  getperminfo

Called when building the permission list to allow retrieving a localized information string for a permission.

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • (string)

    A permission name to be localized.

Returns: (string) - A localized information string.


  Miscellaneous

  Core::InitDebugMode

If debug is enabled in the config.php this hook is called for every request.

Parameters: None

  Core::InitDebugMode

If developer_mode is enabled in the config.php this hook is called for every request.

Parameters: None

  Core::DeleteUserDefinedTagPre

Called immiediately before deleting a user defined tag from the database.

Related Event: Core::DeleteUserDefinedTagPre

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • id - (int)

    The numeric id of the UDT that will be deleted.

  • name - (string)

    The name of the UDT that will be deleted.

  Core::DeleteUserDefinedTagPost

Called immiediately after deleting a user defined tag from the database.

Related Event: Core::DeleteUserDefinedTagPost

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • id - (int)

    The numeric id of the UDT that will be deleted.

  • name - (string)

    The name of the UDT that will be deleted.

  clear_cached_files

Called immediately before clearing the admin cache.

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • older_than - (int)

    the maximum age (in days) of entries/items to remove.


  Module Manager Module

Hooks triggred by the Module Manager.

  ModuleManager::BeforeModuleExport

Called immediately before a module is exported to XML.

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • module_name - (string)

    The name of the module that is being exported.

  • version - (string)

    The version string of the module that is being exported.


  Modules

  Core::ModuleInstalled

Triggered after a module installation has completed.

Related Event: Core::ModuleInstalled

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • name - (string)

    The name of the installed module.

  • version - ((string))

    The version of the installed module.

  Core::ModuleLoaded

Triggered after a module has been loaded into memory

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • name - (string)

    The name of the installed module.

  Core::ModuleUninstalled

Triggered after a module uninstall has completed.

Related Event: Core::ModuleUninstalled

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • name - (string)

    The name of the un-installed module.

  Core::ModuleUpgraded

Triggered after a module upgrade has completed.

Related Event: Core::ModuleUpgraded

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • name - (string)

    The name of the installed module.

  • oldversion - (string)

    oThe version of the installed module before the upgrade

  • newversion - (string)

    The version of the installed module after the upgrade

  module_action

Triggererd immediately before a module action is called. Along with the parameters specified below, handlers for this hook are passed all of the arguments and parameters that were passed in the smarty tag that triggered the call, or in the request data.

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • module - (string)

    The name of the module that is being called.

  • action - (string)

    The name of the action that is being called.

  • id - (string)

    The unique id of the module action call. will be cntnt01 for non-inline module action requests.


  News Module

Hooks triggred by the News module admin panel.

  News::NewsArticleAdded

Called after a new news article is added via the admin console.

Related Event: News::NewsArticleAdded

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • news_id - (int)

    The id of the new news article.

  • category_id - (int)

    The category id of the category associated with the new news article.

  • title - (string)

    The title of the new news article.

  • content - (string)

    The html content associated with the new news article.

  • summary - (string)

    The html summary associated with the new news article.

  • start_time - (int)

    The integer timestamp of the start date of the article (or empty)

  • end_time - (int)

    The integer timestamp of the end date of the article (or empty)

  • postdate - (int)

    The integer timestamp of the post date of the article (or empty)

  • useexp - (boolan)

    Whether or not the start_time and end_time are being used.

  • extra - (string)

    The contents of the extra field associated with the article.

  News::NewsArticleEdited

This hook is also triggered when an administrator approves a news article, however only the news_id and status arguments are provided in this case.

Called after a new news article has been edited via the admin console.

Related Event: News::NewsArticleEdited

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • news_id - (int)

    The id of the edited news article.

  • category_id - (int)

    The category id of the category associated with the news article.

  • title - (string)

    The title of the article.

  • content - (string)

    The html content associated with the new article.

  • summary - (string)

    The html summary associated with the new article.

  • start_time - (int)

    The integer timestamp of the start date of the article (or empty)

  • end_time - (int)

    The integer timestamp of the end date of the article (or empty)

  • postdate - (int)

    The integer timestamp of the post date of the article (or empty)

  • useexp - (boolan)

    Whether or not the start_time and end_time are being used.

  • extra - (string)

    The contents of the extra field associated with the article.

  News::NewsArticleDeletedPre

Called immediately before a news article is removed from the database.

Related Event: News::NewsArticleDeletedPre

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • news_id - (int)

    The id of the news article to be deleted.

  News::NewsArticleDeleted

Called immediately after a news article is removed from the database.

Related Event: News::NewsArticleDeleted

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • news_id - (int)

    The id of the news article that was deleted.

  News::NewsCategoryAdded

Called immediately after a news category is approved from the database.

Related Event: News::NewsCategoryAdded

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • category_id - (int)

    The id of the category that was added.

  • name - (string)

    The name of the category that was added.

  News::NewsCategoryEdited

Called immediately after a news category is edited in the database.

Related Event: News::NewsCategoryEdited

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • category_id - (int)

    The id of the category.

  • name - (string)

    The name of the category.

  • origname - (string)

    The original name of the category before editing.

  News::NewsCategoryDeleted

Called immediately after a news category is deleted from the database.

Related Event: News::NewsCategoryDeleted

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • category_id - (int)

    The id of the category.

  • name - (string)

    The name of the category.


  Search Module

Hooks triggred by the Search module.

  Search::SearchInitiated

Called immediately after a search process is started, but before any searching is done.

Related Event: Search::SearchInitiated

Parameters:

  • (string)

    The text provided in the search input field.

  Search::SearchCompleted

Called immediately after a search process is finished.

Related Event: Search::SearchCompleted

Parameters:

  • (string)

    The text provided in the search input field.

  • (string) - modifiable

    The text provided in the search input field.

  Search::SearchAllItemsDeleted

Called immediately after all indexed words were deleted from the database.

Related Event: Search::SearchAllItemsDeleted

Parameters: None

  Search::SearchItemAdded

Called immediately before a new search item is added to the database.

Related Event: Search::SearchItemAdded

Parameters:

  • (string)

    The name of the module that the data is associated with.

  • (string)

    An indicator of the type of item that is being indexed.

  • (string reference) - modifiable

    The words that are being indexed.

  • (integer)

    A unix timestamp of the time that this item expires. or null.


  Stylesheets / Templates / Designs

  Core::AddDesignPre

Triggered before a new design is saved to the database.

Related Event: Core::AddDesignPre

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • CmsLayoutCollection - (ContentObject) - modifiable

    A reference to the design/collection object about to be saved.

  Core::AddDesignPost

Triggered after a new design is saved to the database.

Related Event: Core::AddDesignPost

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • CmsLayoutCollection - (CmsLayoutCollection) - modifiable

    A reference to the design/collection object that has been saved.

  Core::EditDesignPre

Triggered before an edited design is saved to the database.

Related Event: Core::EditDesignPre

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • CmsLayoutCollection - (CmsLayoutCollection) - modifiable

    A reference to the design/collection object about to be saved.

  Core::EditDesignPost

Triggered after an edited design is saved to the database.

Related Event: Core::EditDesignPost

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • CmsLayoutCollection - (CmsLayoutCollection) - modifiable

    A reference to the design/collection object that has been saved.

  Core::DeleteDesignPre

Triggered before a design is removed from the database.

Related Event: Core::DeleteDesignPre

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • CmsLayoutCollection - (CmsLayoutCollection) - modifiable

    A reference to the design/collection object about to be deleted.

  Core::DeleteDesignPost

Triggered after a design is removed from the database.

Related Event: Core::DeleteDesignPost

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • CmsLayoutCollection - (CmsLayoutCollection) - modifiable

  Core::AddTemplateTypePre

Triggered before a new template type is saved to the database.

Related Event: Core::AddTemplateTypePre

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • CmsLayoutTemplateType - (CmsLayoutTemplateType) - modifiable

    A reference to the type object about to be saved.

  Core::AddTemplateTypePost

Triggered after a new template type is saved to the database.

Related Event: Core::AddTemplateTypePost

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • CmsLayoutTemplateType - (CmsLayoutTemplateType) - modifiable

    A reference to the type object that has been saved.

  Core::EditTemplateTypePre

Triggered before an edited template type is saved to the database.

Related Event: Core::EditTemplateTypePre

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • CmsLayoutTemplateType - (CmsLayoutTemplateType) - modifiable

    A reference to the type object about to be saved.

  Core::EditTemplateTypePost

Triggered after an edited template type is saved to the database.

Related Event: Core::EditTemplateTypePost

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • CmsLayoutTemplateType - (CmsLayoutTemplateType) - modifiable

    A reference to the type object that has been.

  Core::DeleteTemplateTypePre

Triggered before a template type is removed from the database.

Related Event: Core::DeleteTemplateTypePre

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • CmsLayoutTemplateType - (CmsLayoutTemplateType) - modifiable

    A reference to the type object about to be deleted.

  Core::DeleteTemplateTypePost

Triggered after a template type is removed from the database.

Related Event: Core::DeleteTemplateTypePost

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • CmsLayoutTemplateType - (CmsLayoutTemplateType) - modifiable

    A reference to the type object that has been deleted.

  Core::AddTemplatePre

Triggered before a new template is saved to the database.

Related Event: Core::AddTemplatePre

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • CmsLayoutTemplate - (CmsLayoutTemplate) - modifiable

    A reference to the template object about to be saved.

  Core::AddTemplatePost

Triggered after a new template is saved to the database.

Related Event: Core::AddTemplatePost

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • CmsLayoutTemplate - (CmsLayoutTemplate) - modifiable

    A reference to the template object that has been saved.

  Core::EditTemplatePre

Triggered before an edited template is saved to the database.

Related Event: Core::EditTemplatePre

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • CmsLayoutTemplate - (CmsLayoutTemplate) - modifiable

    A reference to the template object about to be saved.

  Core::EditTemplatePost

Triggered after an edited template is saved to the database.

Related Event: Core::EditTemplatePost

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • CmsLayoutTemplate - (CmsLayoutTemplate) - modifiable

    A reference to the template object that has been.

  Core::DeleteTemplatePre

Triggered before a template is removed from the database.

Related Event: Core::DeleteTemplatePre

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • CmsLayoutTemplate - (CmsLayoutTemplate) - modifiable

    A reference to the template object about to be deleted.

  Core::DeleteTemplatePost

Triggered after a template is removed from the database.

Related Event: Core::DeleteTemplatePost

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • CmsLayoutTemplate - (CmsLayoutTemplate) - modifiable

    A reference to the template object that has been deleted.

  Core::AddStylesheetPre

Triggered before a new stylesheet is saved to the database.

Related Event: Core::AddStylesheetPre

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • CmsLayoutStylesheet - (CmsLayoutStylesheet) - modifiable

    A reference to the stylesheet object about to be saved.

  Core::AddStylesheetPost

Triggered after a new stylesheet is saved to the database.

Related Event: Core::AddStylesheetPost

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • CmsLayoutStylesheet - (CmsLayoutStylesheet) - modifiable

    A reference to the stylesheet object that has been saved.

  Core::EditStylesheetPre

Triggered before an edited stylesheet is saved to the database.

Related Event: Core::EditStylesheetPre

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • CmsLayoutStylesheet - (CmsLayoutStylesheet) - modifiable

    A reference to the stylesheet object about to be saved.

  Core::EditStylesheetPost

Triggered after an edited stylesheet is saved to the database.

Related Event: Core::EditStylesheetPost

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • CmsLayoutStylesheet - (CmsLayoutStylesheet) - modifiable

    A reference to the stylesheet object that has been.

  Core::DeleteStylesheetPre

Triggered before a stylesheet is removed from the database.

Related Event: Core::DeleteStylesheetPre

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • CmsLayoutStylesheet - (CmsLayoutStylesheet) - modifiable

    A reference to the stylesheet object about to be deleted.

  Core::DeleteStylesheetPost

Triggered after a stylesheet is removed from the database.

Related Event: Core::DeleteStylesheetPost

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • CmsLayoutStylesheet - (CmsLayoutStylesheet) - modifiable

    A reference to the stylesheet object that has been deleted.


  User Defined Tags

  Core::DeleteUserDefinedTagPre

Called immiediately before deleting a user defined tag from the database.

Related Event: Core::DeleteUserDefinedTagPre

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • id - (int)

    The numeric id of the UDT that will be deleted.

  • name - (string)

    The name of the UDT that will be deleted.

  Core::DeleteUserDefinedTagPost

Called immiediately after deleting a user defined tag from the database.

Related Event: Core::DeleteUserDefinedTagPost

Parameters: This hook receives it's arguments in the form of a single associative array. The keys for this associative array are below.

  • id - (int)

    The numeric id of the UDT that will be deleted.

  • name - (string)

    The name of the UDT that will be deleted.