php

Articles about php

Controlling block page display options programatically

Apr
2015
06
You can set the region, the weight and the path of custom block in a custom module like this:
function hook_block_info(){
    $blocks = array();
    $blocks['my_custom_block'] = array(
        'info' => t('Custom Block Options'),
        'status' => TRUE,

Drupal 7 Read-Only Fields on Forms

Aug
2014
11
Let's say you want to have a form that the field is disabled, can take-update its value through a jquery-ui element but you do not want the user to be able to change the value of the field.

Views and Taxonomy Terms Translation

Feb
2013
12
Have you ever searched “Views” for a way to filter the taxonomy terms by language (as done for nodes), but you didn't find a way to do it? Does “Views” also support that filter in taxonomies or only in nodes? How can I filter the taxonomy terms by language?

Autopopulate vocabulary taxonomy terms to a cck field

Apr
2012
25
Some days ago ( 24.April.2012 ) i had to update an existing site . The customer wanted to make some changes like add new data on some cck fields and update some existing modules . According to his proposal i had to give him the option to autocorrect-edit-delete specific cck field values .

Pages

Subscribe to RSS - php
this is an arrow pointing back to the top of the page