Recent Blogz

Drupal 7 : Alter View Pagination with custom Pager

We can set pager for our views in user interface under pager [Shown in screenshot]. For our custom purpose we can alter the views pager in our module by using the hook function hook_views_pre_render(). This hook contains the reference argument $view that have all render able array of the view. Using this argument we can reset the pager based on our requirements.

Remove HTML tags in AngularJS using user defined Filters with example and Demo

Filter are used to modify the data in AngularJS. Here we create a custom filter to remove the HTML tags from a string. “removeHTMLTags” is the filter name. Used regular expression to strip the HTML tags from the given string..