diff --git a/export/views_bonus_plugin_style_export.inc b/export/views_bonus_plugin_style_export.inc index d0500c685d60419cf362ba8a026d2542a886baf0..4c422fde3b15220611e2ca11d60edb71c1055b7c 100644 --- a/export/views_bonus_plugin_style_export.inc +++ b/export/views_bonus_plugin_style_export.inc @@ -7,12 +7,14 @@ /** * Generalized style plugin for export plugins. + * + * @ingroup views_style_plugins */ class views_bonus_plugin_style_export extends views_plugin_style { /** * Attach this view to another display as a feed. - * + * * Provide basic functionality for all export style views like attaching a * feed image link. */ @@ -26,4 +28,3 @@ class views_bonus_plugin_style_export extends views_plugin_style { $this->view->feed_icon .= l($image, $path, $url_options); } } - diff --git a/export/views_bonus_plugin_style_export_csv.inc b/export/views_bonus_plugin_style_export_csv.inc index 9c3eb4260f09acbaa1da491fd1923c15417e2e10..a275b5919ebe941214767b901e1d864f32f49429 100644 --- a/export/views_bonus_plugin_style_export_csv.inc +++ b/export/views_bonus_plugin_style_export_csv.inc @@ -7,13 +7,26 @@ /** * Generalized style plugin for export plugins. + * + * @ingroup views_style_plugins */ class views_bonus_plugin_style_export_csv extends views_bonus_plugin_style_export { + /** + * Initialize plugin. + * + * Set feed image for shared rendering later. + */ function init(&$view, &$display, $options = NULL) { parent::init($view, $display, $options = NULL); $this->feed_image = drupal_get_path('module', 'views_bonus_export') . '/images/csv.png'; } + /** + * Set options fields and default values. + * + * @return + * An array of options information. + */ function option_definition() { $options = parent::option_definition(); @@ -33,6 +46,16 @@ class views_bonus_plugin_style_export_csv extends views_bonus_plugin_style_expor return $options; } + /** + * Options form mini callback. + * + * @param $form + * Form array to add additional fields to. + * @param $form_state + * State of the form. + * @return + * None. + */ function options_form(&$form, &$form_state) { $form['filename'] = array( '#type' => 'textfield', @@ -53,5 +76,4 @@ class views_bonus_plugin_style_export_csv extends views_bonus_plugin_style_expor '#default_value' => !empty($this->options['header']), ); } - } diff --git a/export/views_bonus_plugin_style_export_doc.inc b/export/views_bonus_plugin_style_export_doc.inc index b1b93e8ccff38e656b2870b50b9f2b5ea3300ba9..228e9aa83ab72749447b9f4157198d528893aab7 100644 --- a/export/views_bonus_plugin_style_export_doc.inc +++ b/export/views_bonus_plugin_style_export_doc.inc @@ -7,13 +7,26 @@ /** * Generalized style plugin for export plugins. + * + * @ingroup views_style_plugins */ class views_bonus_plugin_style_export_doc extends views_bonus_plugin_style_export { + /** + * Initialize plugin. + * + * Set feed image for shared rendering later. + */ function init(&$view, &$display, $options = NULL) { parent::init($view, $display, $options = NULL); $this->feed_image = drupal_get_path('module', 'views_bonus_export') . '/images/doc.png'; } + /** + * Set options fields and default values. + * + * @return + * An array of options information. + */ function option_definition() { $options = parent::option_definition(); @@ -25,6 +38,16 @@ class views_bonus_plugin_style_export_doc extends views_bonus_plugin_style_expor return $options; } + /** + * Options form mini callback. + * + * @param $form + * Form array to add additional fields to. + * @param $form_state + * State of the form. + * @return + * None. + */ function options_form(&$form, &$form_state) { $form['filename'] = array( '#type' => 'textfield', diff --git a/export/views_bonus_plugin_style_export_txt.inc b/export/views_bonus_plugin_style_export_txt.inc index 549b380bf7ea14b4e49a06bfbf1811e6eddb468e..d4148eac0ad345fcef4dbc9edb9e20936249b1fa 100644 --- a/export/views_bonus_plugin_style_export_txt.inc +++ b/export/views_bonus_plugin_style_export_txt.inc @@ -7,13 +7,26 @@ /** * Generalized style plugin for export plugins. + * + * @ingroup views_style_plugins */ class views_bonus_plugin_style_export_txt extends views_bonus_plugin_style_export { + /** + * Initialize plugin. + * + * Set feed image for shared rendering later. + */ function init(&$view, &$display, $options = NULL) { parent::init($view, $display, $options = NULL); $this->feed_image = drupal_get_path('module', 'views_bonus_export') . '/images/txt.png'; } + /** + * Set options fields and default values. + * + * @return + * An array of options information. + */ function option_definition() { $options = parent::option_definition(); @@ -25,6 +38,16 @@ class views_bonus_plugin_style_export_txt extends views_bonus_plugin_style_expor return $options; } + /** + * Options form mini callback. + * + * @param $form + * Form array to add additional fields to. + * @param $form_state + * State of the form. + * @return + * None. + */ function options_form(&$form, &$form_state) { $form['filename'] = array( '#type' => 'textfield', diff --git a/export/views_bonus_plugin_style_export_xml.inc b/export/views_bonus_plugin_style_export_xml.inc index e7d002b6a24aa437390b5302faec940b98e376dd..b28ad0020a712a207695056209b51d300b2510b8 100644 --- a/export/views_bonus_plugin_style_export_xml.inc +++ b/export/views_bonus_plugin_style_export_xml.inc @@ -7,13 +7,26 @@ /** * Generalized style plugin for export plugins. + * + * @ingroup views_style_plugins */ class views_bonus_plugin_style_export_xml extends views_bonus_plugin_style_export { + /** + * Initialize plugin. + * + * Set feed image for shared rendering later. + */ function init(&$view, &$display, $options = NULL) { parent::init($view, $display, $options = NULL); $this->feed_image = drupal_get_path('module', 'views_bonus_export') . '/images/xml.png'; } + /** + * Set options fields and default values. + * + * @return + * An array of options information. + */ function option_definition() { $options = parent::option_definition(); @@ -25,8 +38,17 @@ class views_bonus_plugin_style_export_xml extends views_bonus_plugin_style_expor return $options; } + /** + * Options form mini callback. + * + * @param $form + * Form array to add additional fields to. + * @param $form_state + * State of the form. + * @return + * None. + */ function options_form(&$form, &$form_state) { - $form['filename'] = array( '#type' => 'textfield', '#title' => t('XML filename'),