It's possible to pass custom variables into Views? It's possible to pass custom variables into Views ? I'm trying to manipulate some elements from a Views by using the administration page.

This how I ask the custom variable ...

custom_module.module

/**
 * Implements hook_menu().
 */
function custom_module_menu() {
    $items = array();
    $items['admin/structure/custom_module'] = array(
        'title' =&gt; 'Custom Module Integration',
        'description' =&gt; t('Custom Module'),
        'page callback' =&gt; 'drupal_get_form',
        'page arguments' =&gt; array('custom_module_form'),
        'access arguments' =&gt; array('administer  custom module configuration'),
        'file' =&gt; 'custom_module_form.inc',
    );
    return $items;
}


custom_module_form.inc

/**
 * custom_module
 */
function custom_module_form($form, &amp;$form_state) {

    $form['custom_variable'] = array(
        '#type' =&gt; 'textfield',
        '#title' =&gt; t('custom_module configuration page'),
        '#default_value' =&gt; variable_get('custom_variable'),
        '#description' =&gt; t('Enter my variable'),
    );


    return(system_settings_form($form));

}


The variable is store in my Drupal variable_get which I can confirm on variable editor. So my goal is to be able to used custom_variable on Rewrite Results or Global: Custom text on Views. Which I have try it but does not translate to the variable value.

What I'm doing wrong ? Or is not possible to used variable on Views ?
You have to write a custom module that creates a suitable handler (for example, a Views area handler). In that handler you can read your custom variable and act accordingly.

Keep in mind Views cache. So, if you change that variable you should invalidate the cache object for that view or views that uses that handler.