/**
* Implements hook_ctools_plugin_directory().
*/
function example_pane_ctools_plugin_directory($owner, $plugin_type)
{
// ctoolsのcontent_typeプラグインのディレクトリを指定
if ($owner == 'ctools' && $plugin_type == 'content_types') {
return 'plugins/content_types';
}
}
/**
* This plugin array is more or less self documenting
*/
$plugin = array(
'title' => t('Example pane'), // 管理画面のタイトル
'single' => TRUE, // FALSE:subtypesコンセプト、詳細は:ctools help file context-content.html
'category' => array(t('Examples'), -9), // プラグインのカテゴリ
'edit form' => 'message_pane_edit_form', // プラグインの管理画面
'render callback' => 'message_pane_render' // プラグインの結果表示
);
/**
* プラグインの結果表示(ブロックとしての表示)
*/
function message_pane_render($subtype, $conf, $context = NULL) {
$block = new stdClass();
// The title actually used in rendering
$block->title = check_plain("Example Pane");
if (!empty($conf)) {
$block->content .= '<div>入力されたメッセージ:' .
$conf['example_item'] . '</div>';
}
return $block;
}
/**
* プラグインの管理画面
*/
function message_pane_edit_form($form, &$form_state) {
$conf = $form_state['conf'];
$form['example_item'] = array(
'#type' => 'textfield',
'#title' => t('Example Item'),
'#size' => 50,
'#description' => t('The setting for Example item.'),
'#default_value' => !empty($conf['example_item']) ? $conf['example_item'] : '',
);
return $form;
}
/**
* プラグイン管理画面の内容を保存
*/
function message_pane_edit_form_submit(&$form, &$form_state) {
$form_state['conf']['example_item'] = $form_state['values']['example_item'];
}
/**
* Implements hook_ctools_plugin_directory().
*/
function example_pane_ctools_plugin_directory($owner, $plugin_type)
{
// ctoolsのcontent_typeプラグインのディレクトリを指定
if ($owner == 'ctools' && $plugin_type == 'content_types') {
return 'plugins/content_types';
}
}
/**
* This plugin array is more or less self documenting
*/
$plugin = array(
'title' => t('Example pane'), // 管理画面のタイトル
'single' => TRUE, // FALSE:subtypesコンセプト、詳細は:ctools help file context-content.html
'category' => array(t('Examples'), -9), // プラグインのカテゴリ
'edit form' => 'message_pane_edit_form', // プラグインの管理画面
'render callback' => 'message_pane_render' // プラグインの結果表示
);
/**
* プラグインの結果表示(ブロックとしての表示)
*/
function message_pane_render($subtype, $conf, $context = NULL) {
$block = new stdClass();
// The title actually used in rendering
$block->title = check_plain("Example Pane");
if (!empty($conf)) {
$block->content .= '<div>入力されたメッセージ:' .
$conf['example_item'] . '</div>';
}
return $block;
}
/**
* プラグインの管理画面
*/
function message_pane_edit_form($form, &$form_state) {
$conf = $form_state['conf'];
$form['example_item'] = array(
'#type' => 'textfield',
'#title' => t('Example Item'),
'#size' => 50,
'#description' => t('The setting for Example item.'),
'#default_value' => !empty($conf['example_item']) ? $conf['example_item'] : '',
);
return $form;
}
/**
* プラグイン管理画面の内容を保存
*/
function message_pane_edit_form_submit(&$form, &$form_state) {
$form_state['conf']['example_item'] = $form_state['values']['example_item'];
}
/**
* Implements hook_ctools_plugin_directory().
*/
function example_pane_ctools_plugin_directory($owner, $plugin_type)
{
// ctoolsのcontent_typeプラグインのディレクトリを指定
if ($owner == 'ctools' && $plugin_type == 'content_types') {
return 'plugins/content_types';
}
}
/**
* This plugin array is more or less self documenting
*/
$plugin = array(
'title' => t('Example pane'), // 管理画面のタイトル
'single' => TRUE, // FALSE:subtypesコンセプト、詳細は:ctools help file context-content.html
'category' => array(t('Examples'), -9), // プラグインのカテゴリ
'edit form' => 'message_pane_edit_form', // プラグインの管理画面
'render callback' => 'message_pane_render' // プラグインの結果表示
);
/**
* プラグインの結果表示(ブロックとしての表示)
*/
function message_pane_render($subtype, $conf, $context = NULL) {
$block = new stdClass();
// The title actually used in rendering
$block->title = check_plain("Example Pane");
if (!empty($conf)) {
$block->content .= '<div>入力されたメッセージ:' .
$conf['example_item'] . '</div>';
}
return $block;
}
/**
* プラグインの管理画面
*/
function message_pane_edit_form($form, &$form_state) {
$conf = $form_state['conf'];
$form['example_item'] = array(
'#type' => 'textfield',
'#title' => t('Example Item'),
'#size' => 50,
'#description' => t('The setting for Example item.'),
'#default_value' => !empty($conf['example_item']) ? $conf['example_item'] : '',
);
return $form;
}
/**
* プラグイン管理画面の内容を保存
*/
function message_pane_edit_form_submit(&$form, &$form_state) {
$form_state['conf']['example_item'] = $form_state['values']['example_item'];
}
/**
* Implements hook_ctools_plugin_directory().
*/
function example_pane_ctools_plugin_directory($owner, $plugin_type)
{
// ctoolsのcontent_typeプラグインのディレクトリを指定
if ($owner == 'ctools' && $plugin_type == 'content_types') {
return 'plugins/content_types';
}
}
/**
* This plugin array is more or less self documenting
*/
$plugin = array(
'title' => t('Example pane'), // 管理画面のタイトル
'single' => TRUE, // FALSE:subtypesコンセプト、詳細は:ctools help file context-content.html
'category' => array(t('Examples'), -9), // プラグインのカテゴリ
'edit form' => 'message_pane_edit_form', // プラグインの管理画面
'render callback' => 'message_pane_render' // プラグインの結果表示
);
/**
* プラグインの結果表示(ブロックとしての表示)
*/
function message_pane_render($subtype, $conf, $context = NULL) {
$block = new stdClass();
// The title actually used in rendering
$block->title = check_plain("Example Pane");
if (!empty($conf)) {
$block->content .= '<div>入力されたメッセージ:' .
$conf['example_item'] . '</div>';
}
return $block;
}
/**
* プラグインの管理画面
*/
function message_pane_edit_form($form, &$form_state) {
$conf = $form_state['conf'];
$form['example_item'] = array(
'#type' => 'textfield',
'#title' => t('Example Item'),
'#size' => 50,
'#description' => t('The setting for Example item.'),
'#default_value' => !empty($conf['example_item']) ? $conf['example_item'] : '',
);
return $form;
}
/**
* プラグイン管理画面の内容を保存
*/
function message_pane_edit_form_submit(&$form, &$form_state) {
$form_state['conf']['example_item'] = $form_state['values']['example_item'];
}
/**
* Implements hook_ctools_plugin_directory().
*/
function example_pane_ctools_plugin_directory($owner, $plugin_type)
{
// ctoolsのcontent_typeプラグインのディレクトリを指定
if ($owner == 'ctools' && $plugin_type == 'content_types') {
return 'plugins/content_types';
}
}
/**
* This plugin array is more or less self documenting
*/
$plugin = array(
'title' => t('Example pane'), // 管理画面のタイトル
'single' => TRUE, // FALSE:subtypesコンセプト、詳細は:ctools help file context-content.html
'category' => array(t('Examples'), -9), // プラグインのカテゴリ
'edit form' => 'message_pane_edit_form', // プラグインの管理画面
'render callback' => 'message_pane_render' // プラグインの結果表示
);
/**
* プラグインの結果表示(ブロックとしての表示)
*/
function message_pane_render($subtype, $conf, $context = NULL) {
$block = new stdClass();
// The title actually used in rendering
$block->title = check_plain("Example Pane");
if (!empty($conf)) {
$block->content .= '<div>入力されたメッセージ:' .
$conf['example_item'] . '</div>';
}
return $block;
}
/**
* プラグインの管理画面
*/
function message_pane_edit_form($form, &$form_state) {
$conf = $form_state['conf'];
$form['example_item'] = array(
'#type' => 'textfield',
'#title' => t('Example Item'),
'#size' => 50,
'#description' => t('The setting for Example item.'),
'#default_value' => !empty($conf['example_item']) ? $conf['example_item'] : '',
);
return $form;
}
/**
* プラグイン管理画面の内容を保存
*/
function message_pane_edit_form_submit(&$form, &$form_state) {
$form_state['conf']['example_item'] = $form_state['values']['example_item'];
}
/**
* Implements hook_ctools_plugin_directory().
*/
function example_pane_ctools_plugin_directory($owner, $plugin_type)
{
// ctoolsのcontent_typeプラグインのディレクトリを指定
if ($owner == 'ctools' && $plugin_type == 'content_types') {
return 'plugins/content_types';
}
}
/**
* This plugin array is more or less self documenting
*/
$plugin = array(
'title' => t('Example pane'), // 管理画面のタイトル
'single' => TRUE, // FALSE:subtypesコンセプト、詳細は:ctools help file context-content.html
'category' => array(t('Examples'), -9), // プラグインのカテゴリ
'edit form' => 'message_pane_edit_form', // プラグインの管理画面
'render callback' => 'message_pane_render' // プラグインの結果表示
);
/**
* プラグインの結果表示(ブロックとしての表示)
*/
function message_pane_render($subtype, $conf, $context = NULL) {
$block = new stdClass();
// The title actually used in rendering
$block->title = check_plain("Example Pane");
if (!empty($conf)) {
$block->content .= '<div>入力されたメッセージ:' .
$conf['example_item'] . '</div>';
}
return $block;
}
/**
* プラグインの管理画面
*/
function message_pane_edit_form($form, &$form_state) {
$conf = $form_state['conf'];
$form['example_item'] = array(
'#type' => 'textfield',
'#title' => t('Example Item'),
'#size' => 50,
'#description' => t('The setting for Example item.'),
'#default_value' => !empty($conf['example_item']) ? $conf['example_item'] : '',
);
return $form;
}
/**
* プラグイン管理画面の内容を保存
*/
function message_pane_edit_form_submit(&$form, &$form_state) {
$form_state['conf']['example_item'] = $form_state['values']['example_item'];
}
/**
* Implements hook_ctools_plugin_directory().
*/
function example_pane_ctools_plugin_directory($owner, $plugin_type)
{
// ctoolsのcontent_typeプラグインのディレクトリを指定
if ($owner == 'ctools' && $plugin_type == 'content_types') {
return 'plugins/content_types';
}
}
/**
* This plugin array is more or less self documenting
*/
$plugin = array(
'title' => t('Example pane'), // 管理画面のタイトル
'single' => TRUE, // FALSE:subtypesコンセプト、詳細は:ctools help file context-content.html
'category' => array(t('Examples'), -9), // プラグインのカテゴリ
'edit form' => 'message_pane_edit_form', // プラグインの管理画面
'render callback' => 'message_pane_render' // プラグインの結果表示
);
/**
* プラグインの結果表示(ブロックとしての表示)
*/
function message_pane_render($subtype, $conf, $context = NULL) {
$block = new stdClass();
// The title actually used in rendering
$block->title = check_plain("Example Pane");
if (!empty($conf)) {
$block->content .= '<div>入力されたメッセージ:' .
$conf['example_item'] . '</div>';
}
return $block;
}
/**
* プラグインの管理画面
*/
function message_pane_edit_form($form, &$form_state) {
$conf = $form_state['conf'];
$form['example_item'] = array(
'#type' => 'textfield',
'#title' => t('Example Item'),
'#size' => 50,
'#description' => t('The setting for Example item.'),
'#default_value' => !empty($conf['example_item']) ? $conf['example_item'] : '',
);
return $form;
}
/**
* プラグイン管理画面の内容を保存
*/
function message_pane_edit_form_submit(&$form, &$form_state) {
$form_state['conf']['example_item'] = $form_state['values']['example_item'];
}
/**
* Implements hook_ctools_plugin_directory().
*/
function example_pane_ctools_plugin_directory($owner, $plugin_type)
{
// ctoolsのcontent_typeプラグインのディレクトリを指定
if ($owner == 'ctools' && $plugin_type == 'content_types') {
return 'plugins/content_types';
}
}
/**
* This plugin array is more or less self documenting
*/
$plugin = array(
'title' => t('Example pane'), // 管理画面のタイトル
'single' => TRUE, // FALSE:subtypesコンセプト、詳細は:ctools help file context-content.html
'category' => array(t('Examples'), -9), // プラグインのカテゴリ
'edit form' => 'message_pane_edit_form', // プラグインの管理画面
'render callback' => 'message_pane_render' // プラグインの結果表示
);
/**
* プラグインの結果表示(ブロックとしての表示)
*/
function message_pane_render($subtype, $conf, $context = NULL) {
$block = new stdClass();
// The title actually used in rendering
$block->title = check_plain("Example Pane");
if (!empty($conf)) {
$block->content .= '<div>入力されたメッセージ:' .
$conf['example_item'] . '</div>';
}
return $block;
}
/**
* プラグインの管理画面
*/
function message_pane_edit_form($form, &$form_state) {
$conf = $form_state['conf'];
$form['example_item'] = array(
'#type' => 'textfield',
'#title' => t('Example Item'),
'#size' => 50,
'#description' => t('The setting for Example item.'),
'#default_value' => !empty($conf['example_item']) ? $conf['example_item'] : '',
);
return $form;
}
/**
* プラグイン管理画面の内容を保存
*/
function message_pane_edit_form_submit(&$form, &$form_state) {
$form_state['conf']['example_item'] = $form_state['values']['example_item'];
}
/**
* Implements hook_ctools_plugin_directory().
*/
function example_pane_ctools_plugin_directory($owner, $plugin_type)
{
// ctoolsのcontent_typeプラグインのディレクトリを指定
if ($owner == 'ctools' && $plugin_type == 'content_types') {
return 'plugins/content_types';
}
}
/**
* This plugin array is more or less self documenting
*/
$plugin = array(
'title' => t('Example pane'), // 管理画面のタイトル
'single' => TRUE, // FALSE:subtypesコンセプト、詳細は:ctools help file context-content.html
'category' => array(t('Examples'), -9), // プラグインのカテゴリ
'edit form' => 'message_pane_edit_form', // プラグインの管理画面
'render callback' => 'message_pane_render' // プラグインの結果表示
);
/**
* プラグインの結果表示(ブロックとしての表示)
*/
function message_pane_render($subtype, $conf, $context = NULL) {
$block = new stdClass();
// The title actually used in rendering
$block->title = check_plain("Example Pane");
if (!empty($conf)) {
$block->content .= '<div>入力されたメッセージ:' .
$conf['example_item'] . '</div>';
}
return $block;
}
/**
* プラグインの管理画面
*/
function message_pane_edit_form($form, &$form_state) {
$conf = $form_state['conf'];
$form['example_item'] = array(
'#type' => 'textfield',
'#title' => t('Example Item'),
'#size' => 50,
'#description' => t('The setting for Example item.'),
'#default_value' => !empty($conf['example_item']) ? $conf['example_item'] : '',
);
return $form;
}
/**
* プラグイン管理画面の内容を保存
*/
function message_pane_edit_form_submit(&$form, &$form_state) {
$form_state['conf']['example_item'] = $form_state['values']['example_item'];
}
/**
* Implements hook_ctools_plugin_directory().
*/
function example_pane_ctools_plugin_directory($owner, $plugin_type)
{
// ctoolsのcontent_typeプラグインのディレクトリを指定
if ($owner == 'ctools' && $plugin_type == 'content_types') {
return 'plugins/content_types';
}
}
/**
* This plugin array is more or less self documenting
*/
$plugin = array(
'title' => t('Example pane'), // 管理画面のタイトル
'single' => TRUE, // FALSE:subtypesコンセプト、詳細は:ctools help file context-content.html
'category' => array(t('Examples'), -9), // プラグインのカテゴリ
'edit form' => 'message_pane_edit_form', // プラグインの管理画面
'render callback' => 'message_pane_render' // プラグインの結果表示
);
/**
* プラグインの結果表示(ブロックとしての表示)
*/
function message_pane_render($subtype, $conf, $context = NULL) {
$block = new stdClass();
// The title actually used in rendering
$block->title = check_plain("Example Pane");
if (!empty($conf)) {
$block->content .= '<div>入力されたメッセージ:' .
$conf['example_item'] . '</div>';
}
return $block;
}
/**
* プラグインの管理画面
*/
function message_pane_edit_form($form, &$form_state) {
$conf = $form_state['conf'];
$form['example_item'] = array(
'#type' => 'textfield',
'#title' => t('Example Item'),
'#size' => 50,
'#description' => t('The setting for Example item.'),
'#default_value' => !empty($conf['example_item']) ? $conf['example_item'] : '',
);
return $form;
}
/**
* プラグイン管理画面の内容を保存
*/
function message_pane_edit_form_submit(&$form, &$form_state) {
$form_state['conf']['example_item'] = $form_state['values']['example_item'];
}
/**
* Implements hook_ctools_plugin_directory().
*/
function example_pane_ctools_plugin_directory($owner, $plugin_type)
{
// ctoolsのcontent_typeプラグインのディレクトリを指定
if ($owner == 'ctools' && $plugin_type == 'content_types') {
return 'plugins/content_types';
}
}
/**
* This plugin array is more or less self documenting
*/
$plugin = array(
'title' => t('Example pane'), // 管理画面のタイトル
'single' => TRUE, // FALSE:subtypesコンセプト、詳細は:ctools help file context-content.html
'category' => array(t('Examples'), -9), // プラグインのカテゴリ
'edit form' => 'message_pane_edit_form', // プラグインの管理画面
'render callback' => 'message_pane_render' // プラグインの結果表示
);
/**
* プラグインの結果表示(ブロックとしての表示)
*/
function message_pane_render($subtype, $conf, $context = NULL) {
$block = new stdClass();
// The title actually used in rendering
$block->title = check_plain("Example Pane");
if (!empty($conf)) {
$block->content .= '<div>入力されたメッセージ:' .
$conf['example_item'] . '</div>';
}
return $block;
}
/**
* プラグインの管理画面
*/
function message_pane_edit_form($form, &$form_state) {
$conf = $form_state['conf'];
$form['example_item'] = array(
'#type' => 'textfield',
'#title' => t('Example Item'),
'#size' => 50,
'#description' => t('The setting for Example item.'),
'#default_value' => !empty($conf['example_item']) ? $conf['example_item'] : '',
);
return $form;
}
/**
* プラグイン管理画面の内容を保存
*/
function message_pane_edit_form_submit(&$form, &$form_state) {
$form_state['conf']['example_item'] = $form_state['values']['example_item'];
}
/**
* Implements hook_ctools_plugin_directory().
*/
function example_pane_ctools_plugin_directory($owner, $plugin_type)
{
// ctoolsのcontent_typeプラグインのディレクトリを指定
if ($owner == 'ctools' && $plugin_type == 'content_types') {
return 'plugins/content_types';
}
}
/**
* This plugin array is more or less self documenting
*/
$plugin = array(
'title' => t('Example pane'), // 管理画面のタイトル
'single' => TRUE, // FALSE:subtypesコンセプト、詳細は:ctools help file context-content.html
'category' => array(t('Examples'), -9), // プラグインのカテゴリ
'edit form' => 'message_pane_edit_form', // プラグインの管理画面
'render callback' => 'message_pane_render' // プラグインの結果表示
);
/**
* プラグインの結果表示(ブロックとしての表示)
*/
function message_pane_render($subtype, $conf, $context = NULL) {
$block = new stdClass();
// The title actually used in rendering
$block->title = check_plain("Example Pane");
if (!empty($conf)) {
$block->content .= '<div>入力されたメッセージ:' .
$conf['example_item'] . '</div>';
}
return $block;
}
/**
* プラグインの管理画面
*/
function message_pane_edit_form($form, &$form_state) {
$conf = $form_state['conf'];
$form['example_item'] = array(
'#type' => 'textfield',
'#title' => t('Example Item'),
'#size' => 50,
'#description' => t('The setting for Example item.'),
'#default_value' => !empty($conf['example_item']) ? $conf['example_item'] : '',
);
return $form;
}
/**
* プラグイン管理画面の内容を保存
*/
function message_pane_edit_form_submit(&$form, &$form_state) {
$form_state['conf']['example_item'] = $form_state['values']['example_item'];
}
/**
* Implements hook_ctools_plugin_directory().
*/
function example_pane_ctools_plugin_directory($owner, $plugin_type)
{
// ctoolsのcontent_typeプラグインのディレクトリを指定
if ($owner == 'ctools' && $plugin_type == 'content_types') {
return 'plugins/content_types';
}
}
/**
* This plugin array is more or less self documenting
*/
$plugin = array(
'title' => t('Example pane'), // 管理画面のタイトル
'single' => TRUE, // FALSE:subtypesコンセプト、詳細は:ctools help file context-content.html
'category' => array(t('Examples'), -9), // プラグインのカテゴリ
'edit form' => 'message_pane_edit_form', // プラグインの管理画面
'render callback' => 'message_pane_render' // プラグインの結果表示
);
/**
* プラグインの結果表示(ブロックとしての表示)
*/
function message_pane_render($subtype, $conf, $context = NULL) {
$block = new stdClass();
// The title actually used in rendering
$block->title = check_plain("Example Pane");
if (!empty($conf)) {
$block->content .= '<div>入力されたメッセージ:' .
$conf['example_item'] . '</div>';
}
return $block;
}
/**
* プラグインの管理画面
*/
function message_pane_edit_form($form, &$form_state) {
$conf = $form_state['conf'];
$form['example_item'] = array(
'#type' => 'textfield',
'#title' => t('Example Item'),
'#size' => 50,
'#description' => t('The setting for Example item.'),
'#default_value' => !empty($conf['example_item']) ? $conf['example_item'] : '',
);
return $form;
}
/**
* プラグイン管理画面の内容を保存
*/
function message_pane_edit_form_submit(&$form, &$form_state) {
$form_state['conf']['example_item'] = $form_state['values']['example_item'];
}
/**
* Implements hook_ctools_plugin_directory().
*/
function example_pane_ctools_plugin_directory($owner, $plugin_type)
{
// ctoolsのcontent_typeプラグインのディレクトリを指定
if ($owner == 'ctools' && $plugin_type == 'content_types') {
return 'plugins/content_types';
}
}
/**
* This plugin array is more or less self documenting
*/
$plugin = array(
'title' => t('Example pane'), // 管理画面のタイトル
'single' => TRUE, // FALSE:subtypesコンセプト、詳細は:ctools help file context-content.html
'category' => array(t('Examples'), -9), // プラグインのカテゴリ
'edit form' => 'message_pane_edit_form', // プラグインの管理画面
'render callback' => 'message_pane_render' // プラグインの結果表示
);
/**
* プラグインの結果表示(ブロックとしての表示)
*/
function message_pane_render($subtype, $conf, $context = NULL) {
$block = new stdClass();
// The title actually used in rendering
$block->title = check_plain("Example Pane");
if (!empty($conf)) {
$block->content .= '<div>入力されたメッセージ:' .
$conf['example_item'] . '</div>';
}
return $block;
}
/**
* プラグインの管理画面
*/
function message_pane_edit_form($form, &$form_state) {
$conf = $form_state['conf'];
$form['example_item'] = array(
'#type' => 'textfield',
'#title' => t('Example Item'),
'#size' => 50,
'#description' => t('The setting for Example item.'),
'#default_value' => !empty($conf['example_item']) ? $conf['example_item'] : '',
);
return $form;
}
/**
* プラグイン管理画面の内容を保存
*/
function message_pane_edit_form_submit(&$form, &$form_state) {
$form_state['conf']['example_item'] = $form_state['values']['example_item'];
}
/**
* Implements hook_ctools_plugin_directory().
*/
function example_pane_ctools_plugin_directory($owner, $plugin_type)
{
// ctoolsのcontent_typeプラグインのディレクトリを指定
if ($owner == 'ctools' && $plugin_type == 'content_types') {
return 'plugins/content_types';
}
}
/**
* This plugin array is more or less self documenting
*/
$plugin = array(
'title' => t('Example pane'), // 管理画面のタイトル
'single' => TRUE, // FALSE:subtypesコンセプト、詳細は:ctools help file context-content.html
'category' => array(t('Examples'), -9), // プラグインのカテゴリ
'edit form' => 'message_pane_edit_form', // プラグインの管理画面
'render callback' => 'message_pane_render' // プラグインの結果表示
);
/**
* プラグインの結果表示(ブロックとしての表示)
*/
function message_pane_render($subtype, $conf, $context = NULL) {
$block = new stdClass();
// The title actually used in rendering
$block->title = check_plain("Example Pane");
if (!empty($conf)) {
$block->content .= '<div>入力されたメッセージ:' .
$conf['example_item'] . '</div>';
}
return $block;
}
/**
* プラグインの管理画面
*/
function message_pane_edit_form($form, &$form_state) {
$conf = $form_state['conf'];
$form['example_item'] = array(
'#type' => 'textfield',
'#title' => t('Example Item'),
'#size' => 50,
'#description' => t('The setting for Example item.'),
'#default_value' => !empty($conf['example_item']) ? $conf['example_item'] : '',
);
return $form;
}
/**
* プラグイン管理画面の内容を保存
*/
function message_pane_edit_form_submit(&$form, &$form_state) {
$form_state['conf']['example_item'] = $form_state['values']['example_item'];
}
/**
* Implements hook_ctools_plugin_directory().
*/
function example_pane_ctools_plugin_directory($owner, $plugin_type)
{
// ctoolsのcontent_typeプラグインのディレクトリを指定
if ($owner == 'ctools' && $plugin_type == 'content_types') {
return 'plugins/content_types';
}
}
/**
* This plugin array is more or less self documenting
*/
$plugin = array(
'title' => t('Example pane'), // 管理画面のタイトル
'single' => TRUE, // FALSE:subtypesコンセプト、詳細は:ctools help file context-content.html
'category' => array(t('Examples'), -9), // プラグインのカテゴリ
'edit form' => 'message_pane_edit_form', // プラグインの管理画面
'render callback' => 'message_pane_render' // プラグインの結果表示
);
/**
* プラグインの結果表示(ブロックとしての表示)
*/
function message_pane_render($subtype, $conf, $context = NULL) {
$block = new stdClass();
// The title actually used in rendering
$block->title = check_plain("Example Pane");
if (!empty($conf)) {
$block->content .= '<div>入力されたメッセージ:' .
$conf['example_item'] . '</div>';
}
return $block;
}
/**
* プラグインの管理画面
*/
function message_pane_edit_form($form, &$form_state) {
$conf = $form_state['conf'];
$form['example_item'] = array(
'#type' => 'textfield',
'#title' => t('Example Item'),
'#size' => 50,
'#description' => t('The setting for Example item.'),
'#default_value' => !empty($conf['example_item']) ? $conf['example_item'] : '',
);
return $form;
}
/**
* プラグイン管理画面の内容を保存
*/
function message_pane_edit_form_submit(&$form, &$form_state) {
$form_state['conf']['example_item'] = $form_state['values']['example_item'];
}
/**
* Implements hook_ctools_plugin_directory().
*/
function example_pane_ctools_plugin_directory($owner, $plugin_type)
{
// ctoolsのcontent_typeプラグインのディレクトリを指定
if ($owner == 'ctools' && $plugin_type == 'content_types') {
return 'plugins/content_types';
}
}
/**
* This plugin array is more or less self documenting
*/
$plugin = array(
'title' => t('Example pane'), // 管理画面のタイトル
'single' => TRUE, // FALSE:subtypesコンセプト、詳細は:ctools help file context-content.html
'category' => array(t('Examples'), -9), // プラグインのカテゴリ
'edit form' => 'message_pane_edit_form', // プラグインの管理画面
'render callback' => 'message_pane_render' // プラグインの結果表示
);
/**
* プラグインの結果表示(ブロックとしての表示)
*/
function message_pane_render($subtype, $conf, $context = NULL) {
$block = new stdClass();
// The title actually used in rendering
$block->title = check_plain("Example Pane");
if (!empty($conf)) {
$block->content .= '<div>入力されたメッセージ:' .
$conf['example_item'] . '</div>';
}
return $block;
}
/**
* プラグインの管理画面
*/
function message_pane_edit_form($form, &$form_state) {
$conf = $form_state['conf'];
$form['example_item'] = array(
'#type' => 'textfield',
'#title' => t('Example Item'),
'#size' => 50,
'#description' => t('The setting for Example item.'),
'#default_value' => !empty($conf['example_item']) ? $conf['example_item'] : '',
);
return $form;
}
/**
* プラグイン管理画面の内容を保存
*/
function message_pane_edit_form_submit(&$form, &$form_state) {
$form_state['conf']['example_item'] = $form_state['values']['example_item'];
}
/**
* Implements hook_ctools_plugin_directory().
*/
function example_pane_ctools_plugin_directory($owner, $plugin_type)
{
// ctoolsのcontent_typeプラグインのディレクトリを指定
if ($owner == 'ctools' && $plugin_type == 'content_types') {
return 'plugins/content_types';
}
}
/**
* This plugin array is more or less self documenting
*/
$plugin = array(
'title' => t('Example pane'), // 管理画面のタイトル
'single' => TRUE, // FALSE:subtypesコンセプト、詳細は:ctools help file context-content.html
'category' => array(t('Examples'), -9), // プラグインのカテゴリ
'edit form' => 'message_pane_edit_form', // プラグインの管理画面
'render callback' => 'message_pane_render' // プラグインの結果表示
);
/**
* プラグインの結果表示(ブロックとしての表示)
*/
function message_pane_render($subtype, $conf, $context = NULL) {
$block = new stdClass();
// The title actually used in rendering
$block->title = check_plain("Example Pane");
if (!empty($conf)) {
$block->content .= '<div>入力されたメッセージ:' .
$conf['example_item'] . '</div>';
}
return $block;
}
/**
* プラグインの管理画面
*/
function message_pane_edit_form($form, &$form_state) {
$conf = $form_state['conf'];
$form['example_item'] = array(
'#type' => 'textfield',
'#title' => t('Example Item'),
'#size' => 50,
'#description' => t('The setting for Example item.'),
'#default_value' => !empty($conf['example_item']) ? $conf['example_item'] : '',
);
return $form;
}
/**
* プラグイン管理画面の内容を保存
*/
function message_pane_edit_form_submit(&$form, &$form_state) {
$form_state['conf']['example_item'] = $form_state['values']['example_item'];
}
/**
* Implements hook_ctools_plugin_directory().
*/
function example_pane_ctools_plugin_directory($owner, $plugin_type)
{
// ctoolsのcontent_typeプラグインのディレクトリを指定
if ($owner == 'ctools' && $plugin_type == 'content_types') {
return 'plugins/content_types';
}
}
/**
* This plugin array is more or less self documenting
*/
$plugin = array(
'title' => t('Example pane'), // 管理画面のタイトル
'single' => TRUE, // FALSE:subtypesコンセプト、詳細は:ctools help file context-content.html
'category' => array(t('Examples'), -9), // プラグインのカテゴリ
'edit form' => 'message_pane_edit_form', // プラグインの管理画面
'render callback' => 'message_pane_render' // プラグインの結果表示
);
/**
* プラグインの結果表示(ブロックとしての表示)
*/
function message_pane_render($subtype, $conf, $context = NULL) {
$block = new stdClass();
// The title actually used in rendering
$block->title = check_plain("Example Pane");
if (!empty($conf)) {
$block->content .= '<div>入力されたメッセージ:' .
$conf['example_item'] . '</div>';
}
return $block;
}
/**
* プラグインの管理画面
*/
function message_pane_edit_form($form, &$form_state) {
$conf = $form_state['conf'];
$form['example_item'] = array(
'#type' => 'textfield',
'#title' => t('Example Item'),
'#size' => 50,
'#description' => t('The setting for Example item.'),
'#default_value' => !empty($conf['example_item']) ? $conf['example_item'] : '',
);
return $form;
}
/**
* プラグイン管理画面の内容を保存
*/
function message_pane_edit_form_submit(&$form, &$form_state) {
$form_state['conf']['example_item'] = $form_state['values']['example_item'];
}
/**
* Implements hook_ctools_plugin_directory().
*/
function example_pane_ctools_plugin_directory($owner, $plugin_type)
{
// ctoolsのcontent_typeプラグインのディレクトリを指定
if ($owner == 'ctools' && $plugin_type == 'content_types') {
return 'plugins/content_types';
}
}
/**
* This plugin array is more or less self documenting
*/
$plugin = array(
'title' => t('Example pane'), // 管理画面のタイトル
'single' => TRUE, // FALSE:subtypesコンセプト、詳細は:ctools help file context-content.html
'category' => array(t('Examples'), -9), // プラグインのカテゴリ
'edit form' => 'message_pane_edit_form', // プラグインの管理画面
'render callback' => 'message_pane_render' // プラグインの結果表示
);
/**
* プラグインの結果表示(ブロックとしての表示)
*/
function message_pane_render($subtype, $conf, $context = NULL) {
$block = new stdClass();
// The title actually used in rendering
$block->title = check_plain("Example Pane");
if (!empty($conf)) {
$block->content .= '<div>入力されたメッセージ:' .
$conf['example_item'] . '</div>';
}
return $block;
}
/**
* プラグインの管理画面
*/
function message_pane_edit_form($form, &$form_state) {
$conf = $form_state['conf'];
$form['example_item'] = array(
'#type' => 'textfield',
'#title' => t('Example Item'),
'#size' => 50,
'#description' => t('The setting for Example item.'),
'#default_value' => !empty($conf['example_item']) ? $conf['example_item'] : '',
);
return $form;
}
/**
* プラグイン管理画面の内容を保存
*/
function message_pane_edit_form_submit(&$form, &$form_state) {
$form_state['conf']['example_item'] = $form_state['values']['example_item'];
}











































