public function onAfterRenameMedia(string $new, string $prev, JModel $model) : void

Fires after saving a media file.


Description

Trigger hook to allow the plugins to make something after renaming one or more media files.


Parameters

$new

(string)  The new file name.

$prev

(string)  The previous file name.

$model

(JModel)  The model instance that handles the saving process.

Return Value

None.


Example

/**
 * Trigger hook to allow the plugins to make something after
 * renaming one or more media files.
 *
 * @param   string  $new    The new file name.
 * @param   string  $prev   The previous file name.
 * @param   JModel  $model  The model instance.
 *
 * @return  void
 */
public function onAfterRenameMedia($new, $prev, $model)
{
    /**
     * @todo do something after renaming the media file
     */
}

Changelog

VersionDescription
1.7 Introduced.
Last Update: 2021-10-08 13:39
Helpful?
See Also:
This site uses cookies. By continuing to browse you accept their use. Further information