<?php
/**
 * @file
 * hw_platform_panels_rules.features.inc
 */

/**
 * Implements hook_ctools_plugin_api().
 */
function hw_platform_panels_rules_ctools_plugin_api($module = NULL, $api = NULL) {
  if ($module == "ctools_custom_content" && $api == "ctools_content") {
    return array("version" => "1");
  }
  if ($module == "page_manager" && $api == "pages_default") {
    return array("version" => "1");
  }
}

/**
 * Implements hook_default_rules_link().
 */
function hw_platform_panels_rules_default_rules_link() {
  $items = array();
  $items['renew_inserat'] = entity_import('rules_link', '{
    "settings" : {
      "text" : "Inserat neu einstellen",
      "link_type" : "token",
      "bundles" : { "inserat" : "inserat" },
      "entity_link" : 0,
      "confirm_question" : "Are you sure you want to renew?",
      "confirm_description" : "You can disable your application later on."
    },
    "name" : "renew_inserat",
    "label" : "Renew Inserat",
    "path" : "renew_inserat",
    "entity_type" : "node",
    "rdf_mapping" : []
  }');
  return $items;
}
