summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--views/views_bulk_operations_handler_field_operations.inc2
-rw-r--r--views_bulk_operations.module4
2 files changed, 3 insertions, 3 deletions
diff --git a/views/views_bulk_operations_handler_field_operations.inc b/views/views_bulk_operations_handler_field_operations.inc
index 8cb781b..683a031 100644
--- a/views/views_bulk_operations_handler_field_operations.inc
+++ b/views/views_bulk_operations_handler_field_operations.inc
@@ -156,7 +156,7 @@ class views_bulk_operations_handler_field_operations extends views_handler_field
* placeholder for a "select all" checkbox.
*/
function label() {
- if (is_a($this->view->style_plugin, 'views_plugin_style_table') && !$this->options['vbo']['force_single']) {
+ if ($this->view->style_plugin instanceof views_plugin_style_table && !$this->options['vbo']['force_single']) {
return '<!--views-bulk-operations-select-all-->';
}
else {
diff --git a/views_bulk_operations.module b/views_bulk_operations.module
index a76b0f3..4e147ee 100644
--- a/views_bulk_operations.module
+++ b/views_bulk_operations.module
@@ -91,7 +91,7 @@ function views_bulk_operations_init() {
*/
function _views_bulk_operations_get_field($view) {
foreach ($view->field as $field_name => $field) {
- if (is_a($field, 'views_bulk_operations_handler_field_operations')) {
+ if ($field instanceof views_bulk_operations_handler_field_operations) {
// Add in the view object for convenience.
$field->view = $view;
return $field;
@@ -158,7 +158,7 @@ function theme_views_bulk_operations_select_all($variables) {
$view = $variables['view'];
$form = array();
- if (is_a($view->style_plugin, 'views_plugin_style_table')) {
+ if ($view->style_plugin instanceof views_plugin_style_table) {
// Table displays only get the "select all" markup if they are paginated.
if (count($view->result) == $view->total_rows) {
return '';