In Drupal 7 we can send mail using the function drupal_mail(). It help to sent mail from our Drupal system. This function need mail module, mail key, to mail id, from id, mail language and parameters with mail subject and message body.
Implode is a function used in php which is used to form a string from an element of array. Syntax: implode(“, ”,$string);
Ionic application back button can be easily override using the following example. The default behaviour of the ionic application back button is the history back to one level that is,
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.
To Alter the View query in Drupal we can use the hook_views_pre_execute(). This function have a argument contains views details. From the parameter contains information about query that run to generate result for us. Using the Query information we need to add range for our view.
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..
Explode is function used in php which is used to split the string into array. Return an array format of substring of a defined string. Syntax: explode( $delimiter,$string,$limit);
In Order to modify the data filters are used in AngularJS. This can be used in the expression with a pipe symbol. There are some predefined filters in AngularJS such as..