Otherwise users will run into the message that the method views_get_view() is not available.

CommentFileSizeAuthor
#1 add_views_advice-1293524-1.patch711 bytesHydra
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Hydra’s picture

Well, where did you run into this message? You can use the module perfectly without having views enabled, so in fact it's not a requierment on views necessery!
But it would ne nice to have a notice in the configuration page, that you can use views as base for a custom pager, if you enable views. The default mode for this is, that the area is just not displayed. Baybe an advice, some extra text there to help the user understanding, that there is the possibilty to download the views module to extend this would help.

Something like this perhaps

Hydra’s picture

Category: task » feature
Status: Active » Needs review

status updat

s.Daniel’s picture

Hmm sorry for not posting that information right away. I believe it was right after I enabled the module but coudn't say for sure now.
It was through the upgrade process from d5 through d6 to d7 so I had so many errors to fix and this one was a quick one ;)

Maybe someone else will run into this some time and can add some information ---> set to needs more info?

13rac1’s picture

Title: Add views module as requirenment » Views module is not a requirement, but views_get_view() can be called.
Category: feature » bug
Priority: Minor » Normal
Status: Needs review » Needs work

This is a bug. The following error will be generated when Views is not available.

PHP Fatal error:  Call to undefined function views_get_view() in /var/www/sites/all/modules/custom_pagers/custom_pagers.module on line 300

I like the idea in #1, but also either Views needs to be a requirement or module_exists() needs to be used.