This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tags: | |
function: | |
GetEpoc: sub{return time} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ImportCheck | |
id: ImportCheck | |
version: 0.1 | |
config_settings: | |
EntryPathCustomFieldBasename: | |
default: orig_entry_path | |
PagePathCustomFieldBasename: | |
default: orig_page_path | |
callbacks: | |
cms_post_import.entry: > |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GetListFiles | |
id: GetListFiles | |
version: 0.1 | |
applications: | |
cms: | |
methods: | |
get_listfiles: > | |
sub { | |
my $app = shift; | |
if (! $app->user->is_superuser ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Garbage Cleaner | |
id: GarbageCleaner | |
version: 0.1 | |
callbacks: | |
MT::FileInfo::post_remove: > | |
sub { | |
my ( $cb, $obj ) = @_; | |
my $path = $obj->file_path; | |
require MT::FileMgr; | |
my $fmgr = MT::FileMgr->new( 'Local' ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package MAUS::Callbacks; | |
use strict; | |
sub _data_api_pre_save_entry { | |
my ( $cb, $app, $obj, $original ) = @_; | |
my $entry = $app->param( 'entry' ); | |
$entry = MT::DataAPI::Format::JSON::unserialize( $entry ); | |
if ( $entry->{ 'convert_breaks' } ) { | |
$obj->convert_breaks( lc( $entry->{ 'convert_breaks' } ) ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
id: MAUS | |
name: MAUS | |
key: maus | |
description: <__trans phrase="Set text format to Markdown(Post by MAUS)."> | |
version: 0.1 | |
author_name: Alfasado Inc. | |
author_link: http://alfasado.net/ | |
l10n_class: MAUS::L10N | |
callbacks: | |
data_api_pre_save.entry: $maus::MAUS::Callbacks::_data_api_pre_save_entry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package MAUS::Callbacks; | |
use strict; | |
sub _data_api_pre_save_entry { | |
my ( $cb, $app, $obj, $original ) = @_; | |
my $entry = $app->param( 'entry' ); | |
$entry = MT::DataAPI::Format::JSON::unserialize( $entry ); | |
# if ( $entry->{ 'convert_breaks' } ) { | |
# $obj->convert_breaks( lc( $entry->{ 'convert_breaks' } ) ); | |
# } |
NewerOlder