Thank you for this module. I'm using it to send content updates to users and it works great. I haven't been able to figure out how to theme the variable that's created by this module from a view in rules. It seems to strip out all

tags during its conversion to a variable. Is there any way around this? It would be great to be able to send out the view in an email using mimemail to make it attractive.

Comments

scalp’s picture

Has anyone been able to do this? The more I play with it the more strange things I'm seeing like
's thrown in to keep the view a certain width, but only in certain fields. I've looked through the code, but I'm not seeing where the div tags are getting stripped out or where the line breaks are being added.

scalp’s picture

SOLVED
Replace the function option_definition() with the following in rules_views_executor_plugin_display_rules_executor.inc

  function option_definition() {
    $options = parent::option_definition();

    $options['displays'] = array('default' => array());

    // Overrides for standard stuff:
    $options['style_plugin']['default'] = 'rules_views_executor_style';
    $options['row_plugin']['default'] = 'rules_views_executor_row_ruleset';
    $options['defaults']['default']['style_plugin'] = TRUE;
    $options['defaults']['default']['style_options'] = TRUE;
    $options['defaults']['default']['row_plugin'] = TRUE;
    $options['defaults']['default']['row_options'] = TRUE;
    $options['username']['default'] = 'Rules executor';
    $options['permissions']['default'] = array(
      'access comments',
      'administer comments',
      'access content',
      'administer nodes',
      'administer users',
    );

    return $options;
  }
scalp’s picture

Status: Active » Needs review