
Search In
hooks:- hooks are api code in drupal which allows interaction between module and Drupal core.
Basically A hook is a PHP function look like -
general_test()
“general” is the name of the module (file name for whom is general.module).
“test” is
Hi if you are using php version 5.3 or greater then some functions are really very quick to write and use.
In this blog I am calculating the days between your given two dates.
This is by far the most accurate way of calculating the difference:
This
For some reasons Facebook doesn’t provide profile picture with user info dictionary/data.
We need to fetch profile pic using graph api.
Once user is done with successful authentication he can use following snippet to get profile picture URL.
[[FBReq
To get the date of the past day you can use the below code. You can pass any number of day for which you want to get date instead of 7, I'm getting date of past 7 days in the below example:
/**
* Get date before past 7 days
*
* @return string
You will need the following kind of python code declaration in your .py file:
class product_category(orm.Model):
_inherit = 'product.category'
_columns = {
'ean_sequence_id': fields.many2one('ir.sequence', 'Ean Sequence'),
}
Hello readers,
If you are using cakephp and want to redirect user to any other page/controller with some passing values in url, Well cakephp provides you its own syntax written in php, check bellow example:
$this->redirect(
array(
If you are looking for a function to Zoom in an UIImageView in a 3D tranform scale then you should use CATransform3DScale.
First of all declare a BOOL variable to check scale points. Here I am taking CGFloat _scalePoints and CATransform3D transfor
In below example, I have written Python script to amount interest provision in accounting. Use below python code in your .py file :
if demand.amount_interest:
cfpline_obj.create(cr, uid, {
'origin': demand._nam
If you want to redirect to app settings from your app then use below code to do it. Apple provides a list of URLs to redirect the app to its setting section. Here is the code :-
In a Swift Program:-
UIApplication.sharedApplication().openURL(NSU
Hello All,
In this blog we will discuss about the File cache write problem in CakePhp application.
Everytime when you install new version of the cakePhp or port your code on to the server you come across this error depicting that the cake is unable
