class JquerySocialStreamBean in jQuery social stream 7
Same name and namespace in other branches
- 7.2 plugins/bean/jquery_social_stream.inc \JquerySocialStreamBean
@file jQuery social stream bean plugin.
Hierarchy
- class \BeanPlugin implements BeanTypePluginInterface
- class \JquerySocialStreamBean
Expanded class hierarchy of JquerySocialStreamBean
1 string reference to 'JquerySocialStreamBean'
- jquery_social_stream_bean_types in ./
jquery_social_stream.module - Implements hook_bean_types().
File
- plugins/
bean/ jquery_social_stream.inc, line 7 - jQuery social stream bean plugin.
View source
class JquerySocialStreamBean extends BeanPlugin {
/**
* Declares default block settings.
*/
public function values() {
return array(
'settings' => array(
'conf' => array(),
),
);
}
/**
* Builds extra settings for the block edit form.
*/
public function form($bean, $form, &$form_state) {
$form = array();
$form['settings'] = array(
'#type' => 'fieldset',
'#tree' => TRUE,
'#title' => t('Options'),
);
$form['settings']['conf'] = jquery_social_stream_settings_form(isset($bean->settings['conf']) ? $bean->settings['conf'] : array());
return $form;
}
/**
* Displays the bean.
*/
public function view($bean, $content, $view_mode = 'default', $langcode = NULL) {
return jquery_social_stream_block_content(isset($bean->settings['conf']) ? $bean->settings['conf'] : array());
}
}