On Jan 4, 12:33 pm, Owen Winkler <[email protected]> wrote:

> What hooks did you add?  (do you have a pull request?)


I wanted more options for storing and inserting images into posts and
wanted to make a plugin to do that..

in habarisilo.plugin.php I added:

in function silo_get
    <code>$props = Plugins::filter('habarisilo_media_props',$props);</
code>
right before
   <code> $asset = new MediaAsset( self::SILO_NAME . '/' . $path,
false, $props );</code>

so that I could add some javascript accessible props to work with js
code added to the admin stack by the plugin. Basically creates
additional "code insert" options for the media assets in the silo
display.

in function silo_put
   <code>Plugins::act('habarisilo_upload_after',$this,$file);</code>
right after
  <code> $this->create_thumbnail( $file );</code>

so that the plugin could be configured to store thumbnails of specific
sizes and image types in addition to the default habarisilo
thumbnails.

Thanks for letting plugins in user/plugins override those in the
system folder.

Dave

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/habari-users

Reply via email to