WordPress.org

Plugin Directory

Changeset 413819


Ignore:
Timestamp:
07/22/11 16:47:50 (3 years ago)
Author:
lightningspirit
Message:

Updating branch 0.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wordpress-forms/branches/0.3/dev/wordpress-forms.php

    r413681 r413819  
    102102register_activation_hook( __FILE__, 'wp_forms_activate' ); 
    103103register_deactivation_hook( __FILE__, 'wp_forms_deactivate' ); 
     104 
     105function wp_forms_activate() { 
     106    include( plugin_dir_path( __FILE__ ) . '/activate.php' ); 
     107     
     108} 
     109 
     110function wp_forms_deactivate() { 
     111    include( plugin_dir_path( __FILE__ ) . '/deactivate.php' ); 
     112     
     113} 
     114 
     115 
    104116 
    105117 
     
    314326         
    315327         
    316         /** 
    317          * Include default entities definitions 
    318          */ 
    319         include( dirname( plugin_basename( __FILE__ ) ) . '/includes/form-entities-definitions.php' ); 
    320          
    321         /** 
    322          * Regist new form capabilities 
    323          */ 
    324         $capabilities = (array) empty( $this->capabilities ) ? array() : $this->capabilities; 
    325         $this->capabilities = (object) apply_filters( 'wp_forms_register_capabilities', $capabilities ); 
    326          
    327         /** 
    328          * Regist new form entities 
    329          */ 
    330         $entities = (array) empty( $this->entities ) ? array() : $this->entities; 
    331         $this->entities = (object) apply_filters( 'wp_forms_register_entities', $entities ); 
    332328         
    333329         
     
    347343     */  
    348344    public function admin_init() { 
     345             
     346        /** 
     347         * Admin Actions 
     348         */ 
     349        add_action( 'admin_head', array( &$this, 'admin_head' ) ); 
     350        add_action( 'admin_print_scripts', array( &$this, 'admin_print_scripts' ) ); 
     351        add_action( 'admin_print_styles', array( &$this, 'admin_print_styles' ) ); 
     352        add_action( 'manage_posts_custom_column', array( &$this, 'manage_posts_custom_column' ) ); 
     353        add_action( 'do_meta_boxes', array( &$this, 'do_meta_boxes' ) ); 
     354        add_action( 'save_post', array( &$this, 'save_post' ), 10, 2 ); 
     355         
     356        /** 
     357         * Admin Filters 
     358         */ 
     359        add_filter( 'request', array( &$this, 'request' ) ); 
     360        add_filter( 'post_updated_messages', array( &$this, 'post_updated_messages' ) ); 
     361        add_filter( 'post_row_actions', array( &$this, 'post_row_actions' ) ); 
     362        add_filter( 'manage_edit-mybabyframe_columns', array( &$this, 'manage_edit_columns' ) ); 
     363        add_filter( 'manage_edit-mybabyframe_sortable_columns', array( &$this, 'manage_edit_sortable_columns' ) ); 
     364        add_filter( 'views_edit-mybabyframe', array( &$this, 'edit_views' ) ); 
     365        add_filter( 'bulk_actions-edit-mybabyframe', array( &$this, 'edit_bulk_actions' ) ); 
     366         
     367         
     368        /** 
     369         * Include default entities definitions 
     370         */ 
     371        include( plugin_dir_path( __FILE__ ) . '/includes/form-entities-definitions.php' ); 
     372         
     373        /** 
     374         * Regist new form capabilities 
     375         */ 
     376        $capabilities = (array) empty( $this->capabilities ) ? array() : $this->capabilities; 
     377        $this->capabilities = (object) apply_filters( 'wp_forms_register_capabilities', $capabilities ); 
     378         
     379        /** 
     380         * Regist new form entities 
     381         */ 
     382        $entities = (array) empty( $this->entities ) ? array() : $this->entities; 
     383        $this->entities = (object) apply_filters( 'wp_forms_register_entities', $entities ); 
    349384         
    350385         
Note: See TracChangeset for help on using the changeset viewer.