At #1411684: New homepage for authenticated users we've got a homepage comp that includes a simplified presentation of the stream in a sidebar block without any user avatars.

My first thought was simply to theme the Activity log output, but since the avatars are stored as content in the activity log message, I can't change their presentation without altering the content:

Activity log message config UI

Any suggestions for out to work around this?

CommentFileSizeAuthor
activity_log_message_config.jpg89.41 KBezra-g
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ezra-g’s picture

On a related note, are you interested in having a block display added to the activity_log_stream view?

IceCreamYou’s picture

Currently the way to do this is to add a new stream type:

function MYMODULE_activity_log_display_types() {
  return array(
    'machine-name' => t('Human-friendly name'),
  );
}

Then when you create a new Activity Log action, choose your stream type at the bottom of the form. The default Activity Log view is filtered to the "web" stream type, so you'd need to override that in a block display.

I'm okay with having this contributed back. It might be interesting to make it possible to add stream types from the UI, if there are legitimate use cases. In this particular case you should be able to add actions to each of the existing rules, so it shouldn't crowd up the rules administration screen any more than it already is.

I recognize that this is kind of clumsy, mainly because creating Rules actions manually is kind of slow and exports are huge and hard to maintain. I'm open to suggestions for how to make it easier.