'Test', 'url' => 'http://habariproject.org/', 'author' => 'Owen Winkler', 'authorurl' => 'http://asymptomatic.net/', 'version' => '1.0', 'description' => 'A test plugin', 'license' => 'Apache License 2.0', ); } public function filter_plugin_config( $actions, $plugin_id ) { if ( $plugin_id == $this->plugin_id() ) { $actions[]= _t( 'Mail me' ); } return $actions; } public function action_plugin_ui( $plugin_id, $action ) { if ( $plugin_id == $this->plugin_id() ) { switch ( $action ) { case _t( 'Mail me' ): Utils::mail(User::identify()->email, 'Hi from Habari!', 'This is a test message.', array('from'=>'habari@' . Site::get_url('hostname'))); Session::notice(_t('Sent email to %s', array(User::identify()->email))); break; } } } } ?>