Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

44 lines (40 sloc) 1.208 kb
<?php
/**
* Implementation of hook_ctools_plugin_api().
*/
function vuln_ctools_plugin_api() {
list($module, $api) = func_get_args();
if ($module == "context" && $api == "context") {
return array("version" => 3);
}
elseif ($module == "strongarm" && $api == "strongarm") {
return array("version" => 1);
}
}
/**
* Implementation of hook_node_info().
*/
function vuln_node_info() {
$items = array(
'vuln_content' => array(
'name' => t('<script type="text/javascript">alert("Vuln - node:name");</script>Vuln'),
'module' => 'features',
'description' => t('<script type="text/javascript">alert("Vuln - node:description");</script>'),
'has_title' => '1',
'title_label' => t('<script type="text/javascript">alert("Vuln - node:title_lable");</script>Title'),
'has_body' => '1',
'body_label' => t('<script type="text/javascript">alert("Vuln - node:body_label");</script>Body'),
'min_word_count' => '0',
'help' => t('<script type="text/javascript">alert("Vuln - node:help");</script>'),
),
);
return $items;
}
/**
* Implementation of hook_views_api().
*/
function vuln_views_api() {
return array(
'api' => '2',
);
}
Jump to Line
Something went wrong with that request. Please try again.